From: Brian Candler Date: 2010-01-12T05:46:43+09:00 Subject: Re: fib.rb 1.9.1/1.8.6 source code conflicts/errors jzakiya wrote: > So, since we agree the code in question is 'wrong', it should be > corrected and/or discarded. No, I disagree that the code is 'wrong' (that's why I used the quotes). It's a benchmark. Its sole purpose in life is to be run a number of times, and to have its execution time measured. If fib() were renamed to foo() or bignum_test() would that make you happy? Indeed, "f" "i" "b" are just three letters. Unless I'm mistaken, nowhere is it claimed that this code calculates the correct value of the Fibonacci series. The code does happen to do so for n>0. Anyway, I'm not inclined to argue further. Redmine or ruby-core would be the appropriate places to post patches. -- Posted via http://www.ruby-forum.com/.