BlockClosure comparaison faild

Mathieu Suen mathk.sue at gmail.com
Wed May 9 10:58:33 UTC 2007


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






More information about the Squeak-dev mailing list