[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!

On Sunday, Nov 14, 2004, at 06:00 US/Eastern, James McCartney wrote:


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.

sc-dev mailing list


H. James Harkins /// dewdrop_world

"If attacked by a lion, thrust your arm down his throat.
This takes some practice." -- Cyril Connolly