[Squeak-e] Programming the VM

cg at cdegroot.com cg at cdegroot.com
Mon Feb 3 11:22:37 CET 2003


Mark S. Miller <squeak-e at lists.squeakfoundation.org> said:
>This is lexical scoping, not dynamic scoping, just as Alan's metaphor would 
>seem to demand. Object references stretch between "machines". Messages move 
>between "machines" riding references. Objects stay where they're born.
>
Yeah, I figured that out for myself *after* I posted. Stupid me.
<spank target="self"/>

Anyway, that'd probably mean, or could mean, that you'd have an extra
slot in these objects pointing to their 'machine', not? When they are
instantiated, they get the parent's 'machine' reference unless the
parent overrides it (either by setting it after the fact, or more likely
by a something like 'Foo newInNewEnvironment'). 

SqueakVM specialists: how hard is it to add an extra reference to all
objects? On Squeak level? On VM level?

-- 
Cees de Groot               http://www.cdegroot.com     <cg at cdegroot.com>
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B
Cogito ergo evigilo


More information about the Squeak-e mailing list