hasInstVarRef

Hans-Martin Mosner hmm at heeg.de
Fri Sep 21 14:22:04 UTC 2007


Bergel, Alexandre wrote:
> Hi Adrian,
>
> I wish to know whether a compiled method references any variable.
The problem is that methods which just return the value of an instance
variable are compiled specially with a primitive index which corresponds
to the index of the instance variable plus some offset.
These methodes don't have ordinary bytecodes to read and return the
instance variable.
The implementation of #hasInstVarRef is incomplete, it should definitely
handle this case.

Cheers,
Hans-Martin



More information about the Squeak-dev mailing list