P
Paul Brannan
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]
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]