[squeak-dev] modifying instance variable allocation

Lauren Pullen drurowin at gmail.com
Mon May 2 01:08:01 UTC 2022


Hi list,

I'm trying to make an object that has special instance variable
allocation methods by overriding #instVarAt: and #instVarAt:put:, but it
isn't working.

In an inspector, the fields are presented as expected, but the
#pushRcvr: and #popIntoRcvr: bytecodes seem to use the basic behavior.

#instVarAt: and #instVarAt:put: aren't labeled 'No lookup.' like #== is,
but the VM bytecode evaluator doesn't use them for instance variable
access so the overridden the new behavior only works in the simulator...
which includes everything from inspectors to fileIn/Out and bytecode
simulators.

Is this something you can do? or are you required to use custom getter
and setter methods?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VTesting123.png
Type: image/png
Size: 30819 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220502/568d406d/attachment.png>


More information about the Squeak-dev mailing list