From: Robert Klemme Date: 2006-12-05T17:20:10+09:00 Subject: Re: Question about Ruby philosophy On 04.12.2006 23:28, Martin DeMello wrote: > On 12/5/06, Robert Klemme wrote: >> "dynamic typing" - there's a ton of them. Also, IIRC there are >> discussions of these issues that revolve around "rational" which used to >> change the behavior of Fixnum#/ which could cause problems for some >> programs. > > First I've heard of the 'used to'! When did that change? I was surprised myself, too: irb(main):001:0> 1 / 2 => 0 irb(main):002:0> 1.quo 2 => 0.5 irb(main):003:0> require 'rational' => true irb(main):004:0> 1 / 2 => 0 irb(main):005:0> 1.quo 2 => Rational(1, 2) irb(main):006:0> RUBY_VERSION => "1.8.5" I believe I remember that "1 / 2" used to return "Rational(1, 2)" with 'rational' loaded. Is my memory wrong here? Kind regards robert