Transcript and Dot Notation

Mark Brownell gizmotron at earthlink.net
Mon Feb 27 14:18:50 EST 2006


>Mark-

>Sunday, February 26, 2006, 12:36:57 PM, you wrote:

>> Perhaps a few of you around here will find this funny, I could do
>> an implementation of OOPs with a pull-parser.  The trick to creating
>> a child object is to assign attributes of the parent object to a
>> child object. What is needed during the birthing process is an
>> allocation of memory to store the newly incarnated child and to act
>> on it independently while effecting the parent that can also have
>> global changing effects if desired. 

>Sounds like this would work for properties, but not for handlers. If I
>get you right, changing a property in the parent would then trickle
>down to the children (and granchildren, etc). So the parent class
>would actually keep track of its children, rather than the children
>keeping track of their parent.

-- 
>-Mark Wieder

Mark,

It's a trick. There is not really a relationship between the objects. There is just a command structure that implies an association and that gives you basic tools that are at best only OOPs like. Parents keeping track of the children works well in nature and for this ad-hoc example of inheritance.
 



More information about the use-livecode mailing list