redline-smalltalk/redline-smalltalk — Issue #109: variable access broken in nested blocks
Author: eswartz
Created: 2012-02-08 03:20:55+00:00
State: open

I am evil and tried this as my first program (after removing commas ;):

[ | a |
a := 'Hell'.
[ | b |
b := 'o w'.
[ | c |
c := 'or'.
[ | d |
d := 'ld!'.
[ Transcript show: a; show: b; show: c; show: d; cr. ] value.
] value.
] value.
] value.
] value.

It prints "ld!ld!ld!ld!" instead of "Hello world!".