[squeak-dev] Context reflection regression?
siguctua at gmail.com
Sun Apr 11 15:35:28 UTC 2010
On 11 April 2010 18:23, Hans-Martin Mosner <hmm at heeg.de> wrote:
> Igor Stasenko schrieb:
>> I just found that
>> a: a b: b c: c
>> ^ thisContext sender stackPtr
>> answers 0 :(
> Which is entirely correct and has been like that since the beginning of
> ages :-)
> By the time you're looking at the stack of "thisContext sender", the 4
> values are not there anymore because they have been moved into the stack
> of thisContext. Look at Interpreter>>internalActivateNewMethod, near the
> bottom of that method it says "self internalPop: argCount2 + 1". That's
> where your stackPtr changes from 4 to 0.
> If you would look at the sending context just prior to the send
> bytecode, you'd see a stackPtr of 4.
i thought i could use #pop , and then restart a context from previous
but i found other way to do what i need.
Igor Stasenko AKA sig.
More information about the Squeak-dev