[self-interest] Changing prototype chain as state machine
dave at nexttolast.com
Wed Oct 26 23:20:13 UTC 2011
On Sep 30, 2011, at 4:54 PM, "Jecel Assumpcao Jr." <jecel at merlintec.com> wrote:
> Are we talking about the same kind of map? The ones in my implementation
> are the hidden structure in the VM which play the roles that classes
> play in Smalltalk virtual machines.
Yes we are, I just want to see them exposed :)
The classiness of maps is also a type definition. If you define class as a set of known behaviors map as class works.
Exposing the underlying map implementation tothe language layer could provide an interesting way to guard or hook method sends.
Think assert x is a foo, therefore x can bar, but x doesn't bar so x is not a foo. You can walk the mirror and extract this data, but you loose the history of transformation.
> They are 100% invisible at the Self
> language level. So much so that Ole Agesen had to recreate the
> equivalent at the language level the hard way in his "gold" project:
As always you are a font of information, thanks Jecel.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Self-interest