From: Robert Klemme Date: 2004-10-01T16:40:00+09:00 Subject: Re: Proc.new(method)? (was Re: Funtionality of 'case'-Expression) "Markus" schrieb im Newsbeitrag news:1096591699.3754.209.camel@lapdog.reality.com... > On Thu, 2004-09-30 at 14:12, Brian Candler wrote: > > On Fri, Oct 01, 2004 at 05:13:24AM +0900, Brian Candler wrote: > > > Perhaps it makes more sense in this particular example to subclass Proc, > > > giving a "Proc which has an === method for use in case statements": > > > > Or arguably, just alias Proc#=== to Proc#call in the language core for use > > in case statements, in the same way as Class#=== exists primary for use in > > case statements. > > Foul. I don't think so: we can have both. In fact I like the idea of this built in alias very much. Currently I can't see any obstacles. In the meantime we can do module Kernel private def Criterion(&b) class << b; alias :=== :call end; b end end Alternatively we could suggest to put this method definition into the standard lib. Kind regards robert