approxEqual() has fooled me for a long time...

bearophile bearophileHUGS at lycos.com
Wed Oct 20 04:18:33 PDT 2010


Don:

> Unfortunately, somebody on the ng insisted that it should be called 
> feqrel(). Stupidly,  I listened. And now nobody uses my masterpiece 
> because it has a totally sucky name.

Phobos2 is changing still, even some language details are changing still, so there is time to fix the situation.

For example approxEqual() may just call feqrel(), the third argument of approxEqual() may be changed in the (integer) minimal number of bits that make it return true.

Bye,
bearophile


More information about the Digitalmars-d mailing list