rossabaker (9) [Avatar] Offline
Section 5.4.2
MEAP version 11

val x = 1.0 + 5.0*i

Through Scala 2.9.0-1, it fails to compile just as written in the book. In 2.9.1, it compiles and returns ComplexNumber(1.0, 5.0). My understanding of the spec matches the book -- any idea why this suddenly works in 2.9.1?
rossabaker (9) [Avatar] Offline
Re: 5.4.2: i on the right
Found the reason: Would be nice to mention this language change before the book goes final.
joshua.suereth (60) [Avatar] Offline
Re: 5.4.2: i on the right
Good catch! I'll put a note into that section, thanks.