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

Re: [sc-dev] another switch() crash




On Jan 15, 2006, at 11:16 AM, James McCartney wrote:

switch works on identity not equality, so using strings won't work.


oops I'm wrong on this. this is only if it is inlined in which case equality and identity are the same.
strings don't get inlined, so it is slower to use strings rather than symbols.

of course it should not crash.


it no longer crashes and it produces the correct result.
this also fixes the crash reported by felix some time ago.