From: Brian Mitchell Date: 2007-05-28T22:06:18+09:00 Subject: Re: behavior of proc { || } on 1.9 On 5/27/07, Paul Brannan wrote: > Is this expected behavior? > > cout@bean:~$ ruby -v -e 'proc { || }.call 42' > ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux] > -e:1: wrong number of arguments (1 for 0) (ArgumentError) > from -e:1:in `call' > from -e:1 > cout@bean:~$ ruby1.9 -v -e 'proc { || }.call 42' > ruby 1.9.0 (2007-05-26 patchlevel 0) [i686-linux] In 1.9 proc behaves more like Proc.new IIRC. Brian.