Project

General

Profile

Actions

Bug #8438

closed

Kernel.eval can not Reliably Create new Variables

Added by martin_vahi (Martin Vahi) almost 11 years ago. Updated about 9 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p195 (2013-05-14) [x86_64-linux]
[ruby-core:55141]

Description

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.


Files

flaw_demo.rb (1.64 KB) flaw_demo.rb The flaw_demo.rb contains the whole description of the flaw. martin_vahi (Martin Vahi), 05/23/2013 03:40 PM

Updated by nobu (Nobuyoshi Nakada) almost 11 years ago

  • Status changed from Open to Rejected

Local variables are determined at compile phase.

Actions #2

Updated by martin_vahi (Martin Vahi) about 9 years ago

Thank You for the answer, but as a response to Your answer
I change the current flaw report to a feature request.

Actions

Also available in: Atom PDF

Like0
Like0Like0