From: Ryan Davis on
[Note: parts of this message were removed to make it a legal post.]



On Jul 16, 2010, at 9:45 AM, Phrogz <phrogz(a)mac.com> wrote:

> Just reproduced using 1.9.1p378 on Ubuntu. Looks to me like it's not a
> Windows bug, but something introduced sometime between p129 and p243.

Report on ruby-core@ please.
From: Phrogz on
On Jul 15, 12:29 pm, Phrogz <phr...(a)mac.com> wrote:
> C:\>type tmp.rb
> count = 0
> combo = nil
> (1..166).to_a.combination(5).each do |c|
>   count+= 1; combo = c
> end
> p count, combo
>
> C:\>ruby -v tmp.rb
> ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
> 129462338
> [5, 34, 54, 73, 81]

For posterity, this has now been logged as a bug here:
http://redmine.ruby-lang.org/issues/show/3581