Another surprise

vgs% ./ruby -ve 'nil.instance_eval { def a() :a end }; p 12.a'
ruby 1.9.0 (2008-05-19 revision 16483) [i686-linux]
-e:1:in `<main>': undefined method `a' for 12:Fixnum (NoMethodError)
vgs% 

vgs% ./ruby -ve 'nil.instance_exec { def a() :a end }; p 12.a'
ruby 1.9.0 (2008-05-19 revision 16483) [i686-linux]
:a
vgs% 



Guy Decoux