Making uniform function call syntax more complete a feature

Simen Kjaeraas simen.kjaras at gmail.com
Sat Jul 14 07:31:22 PDT 2012


On Thu, 12 Jul 2012 16:31:34 +0200, Christophe Travert  
<travert at phare.normalesup.org> wrote:

> By the way, would it be possible to implement an opCmp that returns a
> double, to allow it to return a NaN ? That may allow to create values
> that are neither superior, nor inferior to other value, like NaNs. It's
> not possible to implement opCmp for a floating point comparison if opCmp
> is bound to return an int.

Why don't you just test it? Not like it'd be many lines of code.

Anyways, yes this works.

--
Simen


More information about the Digitalmars-d mailing list