[squeak-dev] Trying to understand thisContext
Das.Linux at gmx.de
Mon Jun 8 14:07:09 UTC 2015
On 08.06.2015, at 15:45, matthias.springer <me at matthiasspringer.de> wrote:
> Hi there,
> I am trying to understand what the meaning and implementation of
> "thisContext" is.
> On a recent COG VM, "[ |a b| a:=b:=1. thisContext basicSize ] value" returns
> 3. Adding more temp vars increases that value.
> On a Cocoa VM (http://squeakvm.org/mac/release/Squeak%188.8.131.52.zip), the
> same code always returns 0. Also, "thisContext at: 1" etc. is out of bounds.
(This is a vanilla (ie non-StackVM) interpreter VM)
> Which one is correct? Any ideas?
> The reason why I am asking is because there is code that seems to rely on
> this (e.g. SystemTracer2>>writeContext:) and I am trying to get it running
> on RSqueak.
> View this message in context: http://forum.world.st/Trying-to-understand-thisContext-tp4830938.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev