Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mathn error in development branch (1.9)

4 views
Skip to first unread message

oinkoink

unread,
May 29, 2006, 2:24:37 AM5/29/06
to
I get a critical error when I try to include mathn in the current
development branch (1.9)
of ruby. This is with ruby 1.9.0 (2006-05-27) but the problem has been
around a while:
I noticed it in ruby 1.9.0 (2006-05-01)

3070> ./irb
irb(main):001:0> require 'mathn'
NameError: method `gcd2' not defined in Integer
from /home/bret/local/lib/ruby/1.9/mathn.rb:19:in `remove_method'
from /home/bret/local/lib/ruby/1.9/mathn.rb:19
from (irb):1:in `Kernel#binding'

The offending code in mathn.rb is:
class Integer

remove_method(:gcd2)
def gcd2(other)
(and so forth)

Indeed with a bit of grepping, I can't find gcd2 defined anywhere else,
nor can I find any place that uses
the gcd2 defined at this point in mathn.

Since math is broken without mathn (for example, matrix inverses and
determinants are
completely wrong without mathn) this is a critical bug.

Regards, Oinkoink

erl...@gmail.com

unread,
May 29, 2006, 7:45:18 PM5/29/06
to
Thank you for the bug report. This has been submitted as bug 4605
(http://rubyforge.org/tracker/index.php?func=detail&aid=4605&group_id=426&atid=1698).
Please report future show-stopping bugs with the "Submit New" link
there.

0 new messages