From: mame@... Date: 2019-08-23T04:41:04+00:00 Subject: [ruby-core:94496] [Ruby master Feature#15915] `@1` cannot get from meta-programming Issue #15915 has been updated by mame (Yusuke Endoh). File local_variable_get-for-numparam.patch added Here is an experimental patch. ---------------------------------------- Feature #15915: `@1` cannot get from meta-programming https://bugs.ruby-lang.org/issues/15915#change-80931 * 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 `
' 1: from -e:1:in `block in
' -e:1:in `local_variable_get': wrong local variable name `@1' for # (NameError) ~~~ ---Files-------------------------------- local_variable_get-for-numparam.patch (3.61 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: