From: Yukihiro Matsumoto Date: 2011-01-11T11:35:31+09:00 Subject: [ruby-core:34321] Re: ext/bigdecimal/lib/bigdecimal/util.rb Hi, In message "Re: [ruby-core:34318] ext/bigdecimal/lib/bigdecimal/util.rb" on Tue, 11 Jan 2011 09:17:15 +0900, Aaron Patterson 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.