std.experimental.checkedint is ready for comments!

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 15 17:03:26 PDT 2016


On 06/15/2016 07:34 PM, tsbockman wrote:
> The whole point of `checkedint` is to be able to write algorithms based
> on the simplifying assumption that your variables behave like real,
> UNbounded mathematical integers, secure in the knowledge that an error
> message will be generated if that assumption is invalidated.

Fair point, though one could make the same claim for integers within 
other limits than the machine's. -- Andrei



More information about the Digitalmars-d mailing list