From: Yui NARUSE <redmine@...> Date: 2011-06-15T09:53:15+09:00 Subject: [ruby-dev:43816] [Ruby 1.9 - Bug #4886][Open] autoload in instance_eval doesn't work Issue #4886 has been reported by Yui NARUSE. ---------------------------------------- Bug #4886: autoload in instance_eval doesn't work http://redmine.ruby-lang.org/issues/4886 Author: Yui NARUSE Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3dev (2011-06-15 trunk 32096) [x86_64-freebsd8.2] autoload を instance_eval の中で使うとうまく動きません。 % ./ruby -e'instance_eval{autoload :R,"a";p R}' -e:1:in `block in <main>': uninitialized constant R (NameError) from -e:1:in `instance_eval' from -e:1:in `<main>' -- http://redmine.ruby-lang.org