Wednesday, December 16, 2009

What's changed

a list of things that I am changing to get this more Self like
  • Implicit receiver is always 'this'.
  • Changed Object to have multiple inheritance
  • Remove 'context' slot from Context (made its way onto Object), turn into named super slot
Big problem at the moment is setters. Works fine for objects, but what about functions and their contexts. A closure needs to be able to update the value of its context, but we don't want just anyone able to do that...

After thinking a little while, it turns out that it is just setters. Getters work fine, and of course messages are all public so it doesn't matter. But what we really want is a way to say 'this thing is settable by the objects I contain' (be they functions or objects). This opens the object up to nefariousness, so let's say that it can only be imbued in things the object created; you can't willy nilly specify that an Object's nester is any other object.

Ahhh. Sux

No comments:

Post a Comment