From: Joel VanderWerf Date: 2002-12-18T18:17:55+09:00 Subject: Re: Regex#=== with non-string argument Yukihiro Matsumoto wrote: > Hi, > > In message "Regex#=== with non-string argument" > on 02/12/18, Joel VanderWerf writes: > > |I'm surprised: > | > |x = 1 > | > |case x > |when 5; puts "5" > |when 42; puts "42" > |when /abc/; puts "matches /abc/" > |when "xyz"; puts "xyz" > |end > | > |This is a TypeError. Is there any good reason why? > > No. I will fix this in the development version. And I confirmed no > other === method raise TypeError exception. > > matz. Great. By "other", I assume you mean besides Regex and Range... Thanks!