[phobos] Rational for review

Lars Tandle Kyllingstad lars at kyllingen.net
Sat Aug 28 07:34:37 PDT 2010


On Sat, 2010-08-28 at 16:24 +0200, Philippe Sigaud wrote:
> 
> 
> On Sat, Aug 28, 2010 at 02:48, David Simcha <dsimcha at gmail.com> wrote:
>          I've cleaned up/fixed the bit rot in my Rational library.
>          It's available for review at:
>          http://dsource.org/projects/scrapple/browser/trunk/rational/rational.d?rev=785 .
> 
> Let's give it a try.
> First thing, it's not your faut, but:
> 
> import rational;
> void main()
> {
>     auto r = rational(1,2); // error, finds module rational and not
> rational.rational
> }
> 
> This is going to be a PITA...

But it's only a problem when the module is called 'rational'.  If it
becomes 'std.rational' or is incorporated in std.numeric, it won't be a
problem anymore.

-Lars




More information about the phobos mailing list