Aug. 3, 2010
3:19 a.m.
Hi All, InstructionPrinter printInstructionsOn: doesnt print anything for variable accessor methods. Is this correct and expected? I have a class with an instance variable called 'first' and I have a method called 'first' which simply answers the instance variable. first ^ first When I dump the bytecode for this I get nothing. However, when I add the following to the method the result is as expect, ie: the instance variable is answered. first |x| x := 1. ^ first 13 <76> pushConstant: 1 14 <68> popIntoTemp: 0 15 <00> pushRcvr: 0 16 <7C> returnTop Why is there no bytecode for the simpler case? Rgs, James.