From: Johann Hibschman Date: 2001-05-09T04:11:24+09:00 Subject: [ruby-talk:14878] Re: Integer division oddness YANAGAWA Kazuhisa writes: > require "mathn" and you have not only Rational but Complex :-) >> irb -r mathn > irb(main):001:0> 1/2+2/3 > Rational(7, 6) > irb(main):002:0> Complex(1, 1)/Complex(1, 2) > Complex(Rational(3, 5), Rational(-1, 5)) The problem with this is that it would break all other modules which require 1/2 to produce 0, wouldn't it? That's one of my big misgivings about the ability to easily redefine the methods of global system classes like this. It may work for one file, but it conflicts with everything else. This should be the default, not an optional module. -- Johann Hibschman johann@physics.berkeley.edu