From: Paul Brannan Date: 2002-12-27T06:11:01+09:00 Subject: change in lookup of constants on 1.6.8? I have a piece of code that does something like the following: class Foo A = 1 end def foo(&block) f = Foo.new f.instance_eval(&block) end foo() do p self #=> # p self.class::A #=> 1 p A #=> 1 on 1.6.7; NameError on 1.7 and 1.6.8 end What has changed in Ruby to cause this behavior? Is there a change I can make to foo() or to Foo to allow the block passed to foo() to work? Thanks, Paul