MaDKit forum

Welcome All !
Please, use explicit topic names when creating new threads. Thanks.

You are not logged in.

#1 2011-10-19 10:59:49

lois.vanhee
Member
Registered: 2011-10-03
Posts: 12

Finality of Turtle

Hello,

Many turtle operations (like "die") are declared as final. Such declaration can complicate further extensions of turtles.

For instance, MyTurtle, extending Turtle belongs to a group. When my turtle dies, I wish I can call "die" and have it removed from its group. As "die" is final, I cannot do that, and I have to call "myDie()" which performs desired operations and terminates by calling "die()". The programmer has now to take 2 levels of operations (one at the Turtle level one one at MyTurtle level), increasing the overall complexity of his software.

Is there a strong reason that forces Turtle operations to be final ?

Thank you

Offline

#2 2011-10-21 12:50:57

fmichel
Administrator
From: Montpellier
Registered: 2009-03-24
Posts: 176
Website

Re: Finality of Turtle

Hi,

There is no strong reason and it is indeed a programming mistake from us. I will correct that asap.

Many thanks for the feeback.

Offline

Board footer