From: nobu@... Date: 2019-08-23T15:21:54+00:00 Subject: [ruby-core:94502] [Ruby master Feature#15915] `@1` cannot be achieved in meta-programming Issue #15915 has been updated by nobu (Nobuyoshi Nakada). I'm negative to add `ID_NUMPARAM`. As `rb_is_numparam_id` is not used, and `rb_is_numparam_name` can be implemented without `rb_symname_type`. ---------------------------------------- Feature #15915: `@1` cannot be achieved in meta-programming https://bugs.ruby-lang.org/issues/15915#change-80937 * Author: znz (Kazuhiro NISHIYAMA) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- I cannot think of any way to get `@1` in meta-programming, so it is hard to inspect it in a debugger. ~~~ % 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: