[Self-interest] argument parents (was: general ifTrue)

kjx kjx at ecs.vuw.ac.nz
Thu Dec 23 09:09:06 UTC 2021


for what it's worth, I now thing this is one of the inherent weaknesses
of the Self model - not just for arguments, but even for any constant slot:
there's no good way to make "per-instance" constant slots.

Consider points - Self points are logically immutable, 
but they have to be declared with mutable slots. 

This is why Grace ended up going with Emerald style object creation expressions
(which are pretty much anonymous classes) rather than cloning prototypes.

I guess you could have slots with semantics where
 - cloning the object automatically uninitialises them in the clone,
 - once assigned/initialised they cannot be re-initialised.

Hmm.

Merry Christmas / Happy Holidays / God Yul / Happy New Year / etc everyone - James

> On 17/12/2021, at 6:54AM, Jecel Assumpcao Jr <jecel at merlintec.com> wrote:
> 
> I noticed that I did not actually ever change a parent after I had
> cloned an object. Perhaps that use case would be better expressed as
> setting a value of an argument once and for all, like in theory :self*
> is set when the activation is created?



More information about the Self-interest mailing list