[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68668] [Ruby trunk - Bug #8438] Kernel.eval can not Reliably Create new Variables

From: martin.vahi@...1.com
Date: 2015-03-28 10:51:07 UTC
List: ruby-core #68668
Issue #8438 has been updated by Martin Vahi.


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

----------------------------------------
Bug #8438: Kernel.eval can not Reliably Create new Variables
https://bugs.ruby-lang.org/issues/8438#change-51960

* Author: Martin Vahi
* Status: Rejected
* Priority: Normal
* Assignee: 
* 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.

---Files--------------------------------
flaw_demo.rb (1.64 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next