[squeak-dev] Accessing temp variables bindings in a BlockClosure
Stéphane Rollandin
lecteur at zogotounga.net
Sun Apr 19 22:24:45 UTC 2020
> At the moment I have something working in many cases, but not all (attached)
>
> It can do
> | y x |
> y := 10.
> x := 8.
> [:a :b | a + y + x] tempBindings " {'y'->10 . 'x'->8} "
... well in fact it can't, because just switching x and y in the block
leads to:
| y x |
y := 10.
x := 8.
[:a :b | a + x + y] tempBindings " {'x'->10 . 'y'->8} "
So I'm stuck.
Stef
More information about the Squeak-dev
mailing list
|