[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] bug report redux: switch compiler crash, now with example
Great, thanks!
hjh
On Sunday, Nov 14, 2004, at 06:00 US/Eastern, James McCartney wrote:
fixed.
On Nov 13, 2004, at 9:39 AM, James Harkins wrote:
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
_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev
____________________________________
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