[ruby-core:93064] [Ruby trunk Feature#15915] `@1` cannot get from meta-programming
From:
zn@...
Date:
2019-06-12 08:55:19 UTC
List:
ruby-core #93064
Issue #15915 has been reported by znz (Kazuhiro NISHIYAMA).
----------------------------------------
Feature #15915: `@1` cannot get from meta-programming
https://bugs.ruby-lang.org/issues/15915
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
I think no way to get `@1` from meta-programming, so debugger is hard to inspect it.
~~~
% ruby -e 'proc{@1;binding.local_variable_get("@1")}.call(1)'
Traceback (most recent call last):
2: from -e:1:in `<main>'
1: from -e:1:in `block in <main>'
-e:1:in `local_variable_get': wrong local variable name `@1' for #<Binding:0x00007f952401e490> (NameError)
~~~
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>