From: "nobu (Nobuyoshi Nakada)" Date: 2013-05-23T23:07:53+09:00 Subject: [ruby-core:55145] [ruby-trunk - Bug #8438][Rejected] Kernel.eval can not Reliably Create new Variables Issue #8438 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Rejected Local variables are determined at compile phase. ---------------------------------------- Bug #8438: Kernel.eval can not Reliably Create new Variables https://bugs.ruby-lang.org/issues/8438#change-39509 Author: martin_vahi (Martin Vahi) Status: Rejected Priority: Normal Assignee: Category: core Target version: ruby -v: ruby 2.0.0p195 (2013-05-14) [x86_64-linux] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN Variables that are created by the Kernel.eval are deleted from the execution context before the method eval exits, despite the fact that the execution context that is fed to the Kernel.eval by a Binding instance is still in use. That seriously hinders the use of reflection. Demo resides in the attached flaw_demo.rb. -- http://bugs.ruby-lang.org/