Movement against float.init being nan

Walter Bright newshound2 at digitalmars.com
Thu Aug 25 16:58:01 UTC 2022


On 8/21/2022 2:00 AM, Dom Disc wrote:
> 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.

This may be what you're looking for:

https://dlang.org/phobos/std_checkedint.html


More information about the Digitalmars-d mailing list