BlockClosure comparaison faild

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

BlockClosure comparaison faild

Mathieu SUEN
Hi,
If you tacke the exemple of Andrew Black:

i := 21. j := 0.
b := [(i:= i-1) > 0 ifTrue: [j := j+1 . b value.] ifFalse:[j]] .
b value

And compiled it with the closure compiler, you get an infinite loop.
This came with because of BlockClosure >>#=

I have fix it, see:

http://bugs.squeak.org/view.php?id=6475

        Mth