radisb wrote:
> So where do you think
>
> (make-instance 'composite
> :widgets (list dup dup))
>
> unwanted effect should be fixed? In composite definition or in defgeneric
> (setf widget-children) ?
I wonder how you would end up putting a duplicate object into a children
list; never fell into that pit. But I guess it might be different for
other people, and I'm very much in favor for checking things to prevent
people from shooting themselves in the foot all too easily.
Comments and questions:
* composite is deprecated, just use (make-instance 'widget :children (...))
* what do you mean by "in composite definition"?
* not taking your answer to the above into account: it should probably
go into (setf widget-children)
Hope that helps. :) Thanks for your interest in Weblocks!
Leslie
--
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/weblocks?hl=en.