accessing the stack
Trygve Reenskaug
trygver at ifi.uio.no
Sun Dec 16 09:50:21 UTC 2007
Yes, easily. '/thisContext/' is a context variable known in every
method. Its value is always the /MethodContext/ which is executing the
method.
'/thisContext/' is a variable name treated in the same way as '/self/',
'/super/', etc. See /VariableNode>>initialize/.
Hope this helps
--Trygve
On 16.12.2007 09:44, Niko Matsakis wrote:
> Is it possible to gain access to the current stack context (i.e.,
> MethodContext or BlockContext) in Squeak?
>
>
> thanks,
> Niko
>
>
--
Trygve Reenskaug mailto: trygver at ifi.uio.no
Morgedalsvn. 5A http://folk.uio.no/trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20071216/eeee8dba/attachment.htm
More information about the Squeak-dev
mailing list
|