Movement against float.init being nan

Dom Disc dominikus at scherkl.de
Sun Aug 21 09:00:27 UTC 2022


On Sunday, 21 August 2022 at 03:46:13 UTC, Walter Bright wrote:
> On 8/20/2022 11:05 AM, Dom Disc wrote:
> > that define exactly that: an alias to byte/short/int/long 
> > that takes T.min as invalid value (and uses it as default 
> > value) and gives T.min+1 as its real min value.
>
> As soon as an operation is done on it, it isn't int.min 
> anymore. It has some characteristics of a NaN, but not enough.

It's no problem to implement saveint so, that int.min stays at 
that value for all operations (except direct assignment). Ok, as 
library this may cost a little performance, but I think it's 
worth it.


More information about the Digitalmars-d mailing list