Modifying prototypes

Lee Salzman lsalzman1 at cox.net
Sun Nov 7 22:58:33 PST 2004


Now that it has been brought to my attention, I cleaned up the method in
CVS so that it is used in the following way:

P traits addDynamicSlot: #someSlot valued: whateverValue.

Much more intuitive than the way it was before, I think.

On Sun, Nov 07, 2004 at 06:50:13PM -0500, Todd Fleming wrote:
> Nice approach; I looked at the implementation.
> 
> Todd
> 
> Lee Salzman wrote:
> 
> >P addProtectedSlot: #someSlot in: #traits valued: whateverValue.
> >
> >On Sun, Nov 07, 2004 at 05:50:22PM -0500, Todd Fleming wrote:
> > 
> >
> >>Let's say I have a prototype P with some slots. Let's also say that P 
> >>traits has several roles. I clone P several times. I discover that I 
> >>need to add some more slots to P and some more roles to P traits that 
> >>need those slots. Is there an easy way to add the slots to existing 
> >>objects that delegate to P traits?
> >>
> >>Todd
> >>   
> >>
> 




More information about the Slate mailing list