[self-interest] Re: Issues about delegation

Steve Dekorte steve at dekorte.com
Thu Nov 6 06:05:14 UTC 2003

On Nov 5, 2003, at 9:57 PM, James McCartney wrote:
> Then how would you mutate a field in the parent if it always creates a
> field in the 'instance'?

One way is to reference the parent:

self proto someValue = 1

If you need to always reference a particular parent, then it might be 
best to add a slot with a reference to that parent:

Foo init = method(
   self foo = self

Bar = Foo clone
Bar doStuff = method(
   self foo value = 1

-- Steve

More information about the Self-interest mailing list