[Gridflow-dev] lists of more than 254 numbers fixed in Ruby.

Mathieu Bouchard matju at artengine.ca
Sun Oct 8 00:18:25 EDT 2006

there was a bug using [#export_list] with more than 254 numbers. This is 
because Ruby 1.9 had a bug with passing more than 255 arguments to a 
method, which existed since June 9th 2006 until October 7th 2006.

this means that you can all go back to using lists of 921600 elements like 
you used to, unless you're still freezing your ruby to 2005-10-01 or 

---------- Forwarded message ----------
From: Yukihiro Matsumoto <matz ruby-lang.org>
To: ruby-core at ruby-lang.org
Date: Sat, 7 Oct 2006 23:36:50 +0900
In-reply-to: 9021


In message "Re: argument passing bug"
     on Sat, 7 Oct 2006 11:03:37 +0900, Mathieu Bouchard <matju / 
artengine.ca> writes:

|ruby -e 'def foo(*x) x end; puts foo(*[42]*666).length'
|#=> 156
|the argument count behaves almost mod 255. (why?)

Thank you for finding a bug.  I just fixed it.


More information about the Gridflow-dev mailing list