[Vm-dev] Re: FYI, Spoon simulates on Mac/win32/Linux

Craig Latta craig at netjam.org
Sun May 29 20:17:43 UTC 2011


Hi Mariano--

> Do you do something in #lookupMethodInClass: that checks that the
> current class is Other. To do that you use objectMemory splObj:
> OtherClass and you put Other in the special object array?

     Exactly.

> Then if that's true, you fetch the instVar for network stream + ID
> (you assume the instVars offsets), and you forward the message to the
> original object?

     It's simpler than that; the VM just creates a message to the proxy
(in a manner similar to doesNotUnderstand:), using a special selector
which is also known from the special objects array. Then the proxy
forwards the message itself. The VM need not know about the network
stream or original object ID.


-C

--
Craig Latta
www.netjam.org/resume
+31  06 2757 7177
+ 1 415  287 3547





More information about the Vm-dev mailing list