From: Jesse Silliman Date: 2006-09-05T09:28:22+09:00 Subject: Re: Kernel.=== in case statements, even though I never calle Tomasz Wegrzanowski wrote: > > case uses === (pattern match) not ==. > > It is very useful: > > case str > when /foo/ > ... > end > > case num > when 3..5 > ... > end Oh, I'm quite aware of that. Oh... its calling the objects inherited Kernel.===, not calling Kernel::===. Ok, well, in that case, a good question would be "Why is it so much slower in simple cases than == is, even though for string they do the exact same thing?" -- Posted via http://www.ruby-forum.com/.