Hi,
I am running the April web development image sq3.10-7159web08.04.1 on Ubuntu.
Following this sample from:
http://www.nabble.com/problems-with-scoping-td6963420.html#a6963581arr := Array withAll: #(1 2 3 4 5 ).
blocks := arr collect: [ :i | [Transcript show: i] ].
blocks do:[:item | item value].
running in a workspace I get the return 55555.
arr := Array withAll: #(1 2 3 4 5 ).
blocks := arr collect: [ :i | [Transcript show: i] fixTemps ].
blocks do:[:item | item value].
returns 12345.
When I load AST and NewCompiler through SqueakMap, and enable the options
compileUseNewCompiler and compileBlocksAsClosures and repeat
arr := Array withAll: #(1 2 3 4 5 ).
blocks := arr collect: [ :i | [Transcript show: i] ].
blocks do:[:item | item value].
Squeak crashes.
Am I doing something obviously wrong?
...Stan
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners