Math float equivalence

Lucas Goss lgoss007 at gmail.com
Wed Jul 5 10:04:01 PDT 2006


Oskar Linde wrote:
> 
> int mfeq(real x, real y, real precision)
> 
> in std.math seems to be what you are asking for. The bad news is that it 
> is private. The good news is that DMD lets you use it anyway as long as 
> you use the fully qualified name std.math.mfeq. ;)
> 

Ah, thanks. But now this has got me asking, why is it private in the 
first place? And secondly, how can something be private and yet still 
accessible? I consider using the FQN on a private import to be a broken 
feature so I'll probably just copy the function to my math library.

Thanks again,
Lucas



More information about the Digitalmars-d mailing list