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: [hidden email]
Morgedalsvn. 5A http://folk.uio.no/trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway