[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] bug report redux: switch compiler crash, now with example


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.