From: ts Date: 2008-01-05T21:32:03+09:00 Subject: Re: module_eval oddness on 1.9 >>>>> "F" == Frederick Cheung writes: F> class Foo F> module_eval do F> define_method :attribute do |*args| F> return "hello_world" F> end F> end F> end F> Foo.new.attribute #=> 'hello world' This is vm_throw() which has a problem, it return GET_LFP() when (state == TAG_RETURN) && (VM_FRAME_TYPE(cfp) == FRAME_MAGIC_LAMBDA) rather than dfp. Guy Decoux