[ruby-core:62442] [ruby-trunk - Bug #5328] Splat args are treated wrongly in instance_exec and class_exec

From: myron.marston@...
Date: 2014-05-07 06:58:29 UTC
List: ruby-core #62442
Issue #5328 has been updated by Myron Marston.


Thanks.  I'm still trying to wrap my head around it but that's quite helpful.

----------------------------------------
Bug #5328: Splat args are treated wrongly in instance_exec and class_exec
https://bugs.ruby-lang.org/issues/5328#change-46589

* Author: Myron Marston
* Status: Rejected
* Priority: Normal
* Assignee: Akira Tanaka
* Category: 
* Target version: 
* ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
* Backport: 
----------------------------------------
This gist demonstrates the issue:

https://gist.github.com/1218664

On 1.8.7, instance_exec and class_exec treat splat block args the same as method splat args.  On 1.9, it is treated differently and this is very unexpected.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next