Accessing variables through sending messages

Alexandre Bergel bergel at iam.unibe.ch
Tue Jun 21 14:29:09 UTC 2005


Hello,

I know there are some Self experts in this mailing list, that's why I am asking a question related to it there. What would be the best strategy to have variables not accessed by using their index, but rather by sending messages correspondong to their accessors/mutators.

I feel that an efficient implementation would require new bytecode, therefore hardcoding this in the VM.

Markus Denker has an implementation that use an object-as-compiled trick to delay the recompilation of a method, but the assumption was not to modify the VM.

Anyone can confirm or infirm what I wrote ?

Cheers,
Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.iam.unibe.ch/~bergel  
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




More information about the Squeak-dev mailing list