Overload comparison operators for "nullable" types
code.viator at gmail.com
Sat Aug 1 13:17:47 UTC 2020
On Thursday, 30 July 2020 at 14:52:17 UTC, H. S. Teoh wrote:
> On Thu, Jul 30, 2020 at 01:41:05PM +0000, Oleg B via
> Digitalmars-d-learn wrote: [...]
>> Logically we can compare versions, but what must return
>> `opCmp` if one of versions has 'not comparible' state?
> opCmp is allowed to return float; so you could return float.nan
> in this case.
Thank you! Simple answer but not in documentation...
More information about the Digitalmars-d-learn