From: naruse@... Date: 2017-03-11T12:45:48+00:00 Subject: [ruby-core:80014] [Ruby trunk Bug#13074] When executing instance_exec with symbol.to_proc, it ignores first argument. Issue #13074 has been updated by Yui NARUSE. Backport changed from 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE ruby_2_4 r57834 merged revision(s) 57194. ---------------------------------------- Bug #13074: When executing instance_exec with symbol.to_proc, it ignores first argument. https://bugs.ruby-lang.org/issues/13074#change-63432 * Author: Hiroyuki Ishii * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE ---------------------------------------- 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: