On 21.06.2010 20:23, Eliot Miranda wrote:
Compiler evaluate: '[ :a | | t | ] value: 1' crashes the VM in Pharo 1.1, but not in Squeak.
This doesn't crash for me. So this is likely a closure compiler issue. Someone might want to compare the closure compiler in Squeak trunk against Pharo and move the updates across. I'll happily review.
Mhhhm, think it might have something to do with http://forum.world.st/BUG-a-value-1-td1298622.html#a1298632 (not sure if you read the rest of the thread after initially replying, but long story short, Pharo ended up changing it to return nil).
As the crash only happens with blocks where there are unused block temps and no block arg usage, I thought it may be another instance of the same bug. With the additional line found in attached changed method commented out, Pharo also returns 1 rather than crash.
Cheers, Henry