From: ts Date: 2008-05-20T18:36:03+09:00 Subject: [1.9] nil.instance_eval Sorry, there is something that I've not understood in bootstraptest/test_eval.rb assert_equal 'ok', %q{ begin nil.instance_eval { def a() :a end } rescue => TypeError :ok end }, '[ruby-core:16796]' assert_equal 'ok', %q{ begin nil.instance_exec { def a() :a end } rescue => TypeError :ok end }, '[ruby-core:16796]' If I can write this vgs% ./ruby -ve 'def nil.a() :a end' ruby 1.9.0 (2008-05-20 revision 16491) [i686-linux] vgs% why I can't use instance_{eval,exec} to define method with nil ? Guy Decoux