[ruby-core:32764] [Ruby 1.8-Bug#3938][Feedback] Ruby incorrectly compares the length of Array elements of Enumerable objects to the arity of Methods given as blocks to Enumerable methods

From: Shyouhei Urabe <redmine@...>
Date: 2010-10-13 01:58:56 UTC
List: ruby-core #32764
Issue #3938 has been updated by Shyouhei Urabe.

Status changed from Open to Feedback

Designed behaviour.  This is how an assignment works for 1.8.

But yes, it turned out to be odd.  So we changed it to be more natural in 1.9.  So your correct way is to switch to 1.9.  If you need this backported to 1.8, tell us why.  Beware that we are not for that because of backward compatibilities.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3938

----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next