Am 24.03.2014 um 23:51 schrieb Pavel Krivanek <pavel.krivanek@gmail.com>:

Who can find the most useful usage of this?

thisContext instVarNamed: #receiver put: 42.
self factorial

GOTO statement in Pharo:

FileStream stdout nextPutAll: 'Hello world'; lf. 
thisContext jump: -12.
Let's collect the next ones :-)


|  injectedContext returnValue |
injectedContext := [  
returnValue := self dummySendToSkip.
block value.
returnValue ] asContext.
injectedContext pc: injectedContext startpc + 2.
injectedContext swapSender: (self targetContext swapSender: injectedContext) 

I used this once. It is hackish but I still like it because I don�t know how to solver that better :)

Norbert