Discussion Thread: DIP 1042--ProtoObject--Community Review Round 1

Dom DiSc dominikus at scherkl.de
Fri Jan 14 01:59:19 UTC 2022

On Friday, 14 January 2022 at 01:48:06 UTC, Dom DiSc wrote:
> returning the same type, namely the 4 float-values -1, 0, 1 and 
> NaN is very important.

And by the way, using float instead of int does no harm, as both 
are 32bit types so they waste the same memory to store two bit of 
And if you don't need the NaN value because your class is totally 
ordered, simply don't use it. Just be glad that it's there, 
because most of the time you will learn later that your class is 
not as totally ordered as you thought at first glance.

More information about the Digitalmars-d mailing list