From: ts Date: 2008-04-01T21:21:13+09:00 Subject: Re: Why Ruby do not optimize code at all? Marcin Miel��y��ski wrote: > Not true. The instruction itself is responsible for the fallback (just > not implemented yet). vgs% ./ruby -ve 'case "a"; when :a; p :ok; end' ruby 1.9.0 (2008-04-01 revision 15881) [i686-linux] vgs% It's a bug : it's useless to add an optimisation which *break* some code and in this case the fallback is *precisely* to call Symbol#===, i.e. to bypass the optimisation. Why you don't do the same optimisation with Regexp#===, Range#===, ... to break more scripts ? Guy Decoux