core.checkedint

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 24 15:57:05 PDT 2016


On 06/24/2016 06:56 PM, Walter Bright wrote:
> On 6/24/2016 3:29 PM, Andrei Alexandrescu wrote:
>> These functions are not supposed to be used naïvely.
>
> They are also meant to be inspectable. I want to look at it and
> trivially know what I am getting.

Then the right API is add(x, y, overflow). I look at it and I trivially 
know what I am getting. -- Andrei



More information about the Digitalmars-d mailing list