[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] bug report redux: switch compiler crash, now with example
OK, here's an example for the switch compiler bug.
switch seems to work in the interpreter, but it crashes the language when it's used in a method definition:
TestSwitch {
*test { |val|
^val.switch { 0 } { "zero" } { 1 } { "one" }
}
}
Add this to your class library, recompile, and watch sc twitch and die. I just verified this against the Nov. 11 build at Wesleyan.
hjh
____________________________________
H. James Harkins /// dewdrop_world
http://www.dewdrop-world.net
"If attacked by a lion, thrust your arm down his throat.
This takes some practice." -- Cyril Connolly