[Newbies] NewCompiler crashes Squeak

squeak414 at free.fr squeak414 at free.fr
Thu Apr 17 20:34:42 UTC 2008


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#a6963581

arr := 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


More information about the Beginners mailing list