Hi,
In message "Re: [ruby-core:34318] ext/bigdecimal/lib/bigdecimal/util.rb"
on Tue, 11 Jan 2011 09:17:15 +0900, Aaron Patterson <aaron / tenderlovemaking.com> writes:
|It looks like ext/bugdecimal/lib/bigdecimal/util.rb is only
|conditionally required by bigdecimal.c:
|
| https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L148-151
|
|Could we possibly change this to just require 'util.rb' all the time?
I'd rather like to remove the dependency of util.rb from the
bigdecimal core.
|Also, it looks like bigdecimal defines `to_d` on a few classes, but not
|itself. It would be nice if we could call `to_d` on all Numeric
|objects as well as BigDecimal objects.
I agree with this patch, only when bigdecimal/util is explicitly
loaded. In fact, I don't want to see no more to_x (x is any single
character) conversion methods in the core libraries.
matz.