[self-interest] Changing prototype chain as state machine

David Goehrig 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:
> http://selflanguage.org/documentation/published/gold

As always you are a font of information, thanks Jecel. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20111026/c9a88e95/attachment.html>

More information about the Self-interest mailing list