Hi all,

I was wondering about the current design of liebermann prototypes. Since this 
is useful for sidewise composition, I have the following question:

Should a "piece" (i.e. an object inside another object's delegation chain) be 
aware of the fact that it is indeed a piece of that particular object? At the 
moment, it sort of does, since it has to point to the next piece as a result 
of the _delegate message.

This could be avoided by providing each object with an array of pieces, rather 
than a "next" field.

Another advantage I could think of, would be that a certain object could then 
actually be a piece of several different objects, as it would be an element 
of each array. Currently this is impossible, since an object can indicate 
only one object as its _delegate.

Would there be disadvantages as well? I am guessing there must be, since 
otherwise the design wouldn't be as it is, but I can't think of any...

Thanks,

Hans

-- 
A liberal is a person whose interests aren't at stake at the moment
  -- Willis Player

Hans Schippers
Research Assistant of the Research Foundation - Flanders (FWO - Vlaanderen)
http://www.win.ua.ac.be/~hschipp/
Formal Techniques in Software Engineering (FoTS)
University of Antwerp
Middelheimlaan 1
2020 Antwerpen - Belgium
Phone: +32 3 265 38 71
Fax: +32 3 265 37 77

Attachment: pgp9PNCjhbmCP.pgp
Description: PGP signature

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to