From: alpaca-tc@... Date: 2016-12-26T05:00:55+00:00 Subject: [ruby-core:78840] [Ruby trunk Bug#13074] When executing instance_exec with symbol.to_proc, it ignores first argument. Issue #13074 has been updated by Hiroyuki Ishii. Subject changed from When execute instance_exec with symbol.to_proc, it ignores first argument. to When executing instance_exec with symbol.to_proc, it ignores first argument. ---------------------------------------- Bug #13074: When executing instance_exec with symbol.to_proc, it ignores first argument. https://bugs.ruby-lang.org/issues/13074#change-62245 * Author: Hiroyuki Ishii * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Is this intentional? ``` # Ruby 2.3.3 �� instance_exec(1) { |i| i.itself } => 1 �� instance_exec(1, &:itself) => 1 # Ruby 2.4.0 �� instance_exec(1) { |i| i.itself } => 1 �� instance_exec(1, &:itself) => main ``` -- https://bugs.ruby-lang.org/ Unsubscribe: