[ruby-core:63516] [ruby-trunk - Bug #9749] r45589 introduced an incompatibility

From: usa@...
Date: 2014-07-02 08:02:07 UTC
List: ruby-core #63516
Issue #9749 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED

----------------------------------------
Bug #9749: r45589 introduced an incompatibility
https://bugs.ruby-lang.org/issues/9749#change-47567

* Author: Yusuke Endoh
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: 
* Target version: current: 2.2.0
* ruby -v: ruby 2.2.0dev (2014-04-16 trunk 45599) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED
----------------------------------------
    $ ruby -ve 'ary = []; (1..10).each_slice(3, &lambda {|a, *| ary << a }); p ary'
    ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
    [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]

    $ ./miniruby -ve 'ary = []; (1..10).each_slice(3, &lambda {|a, *| ary << a }); p ary'
    ruby 2.2.0dev (2014-04-16 trunk 45599) [x86_64-linux]
    [[10], [10], [10], [10]]

See also: https://github.com/ruby/ruby/pull/596#issuecomment-40594384

-- 
Yusuke Endoh <[email protected]>



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

In This Thread

Prev Next