interleavedCtx := [ | foo |
foo := self dummySend
…
]
It doesn't work with a temp inside the block. Using a method temp does what I think it does. So the very hackish way of doing it is at the moment
| foo |
...
interleavedCtx := [
foo := self dummy.
…
foo ] asContext.
interleavedCtx pc: intermediateCtx startpc + 2.
interleavedCtx swapSender: (targetCtx swapSender: interleavedCtx)
I hope there is a more elaborate way of doing this (beside calculating the byte code offset more reliable).
Norbert