scalagwt/scalagwt-scala — pull request #47 by nbauernfeind (2012-01-24 07:27:12+00:00)
Title: Transforming boolean or's and and's to if else blocks to preserve lazy evaluation.

The latest merge from scala master has exposed a bug in the jribble transformation phase.

scala.collection.immutable.Range now has a construct similar to {a || b} where b() contained side effects and the common case was for a to be true.

I've tracked down the issue and attempted to implement a fix with the guidance from Lex and Grzegorz.

I also tried to add a test but couldn't figure out how to get them to happily run.

See this thread for more details:
https://groups.google.com/forum/#!topic/scalagwt/vzL-e1pE-H8