« Return to Thread: NewCompiler crashes Squeak

NewCompiler crashes Squeak

by stan shepherd :: Rate this Message:

Reply to Author | View in Thread


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
_______________________________________________
Beginners mailing list
Beginners@...
http://lists.squeakfoundation.org/mailman/listinfo/beginners

 « Return to Thread: NewCompiler crashes Squeak