From: alpaca-tc@... Date: 2016-12-26T04:59:19+00:00 Subject: [ruby-core:78839] [Ruby trunk Bug#13074] When execute instance_exec with symbol.to_proc, it ignores first argument. Issue #13074 has been reported by Hiroyuki Ishii. ---------------------------------------- Bug #13074: When execute instance_exec with symbol.to_proc, it ignores first argument. https://bugs.ruby-lang.org/issues/13074 * 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: