How to detect overflow
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Nov 4 00:18:00 PST 2015
On 11/03/2015 11:34 PM, BBasile wrote:
> On Wednesday, 4 November 2015 at 07:19:09 UTC, Ali Çehreli wrote:
>> On 11/03/2015 10:34 PM, Namal wrote:
>>
>>>> http://dlang.org/phobos/core_checkedint.html
>>>
>>> Is it just an error in the documentation that the return value is stated
>>> as sum for the multiplication functions?
>>
>> Yeah, looks like classic copy-paste errors. :)
>>
>> Ali
>
> I take the token for this ddoc fix:
>
> https://github.com/D-Programming-Language/druntime/pull/1429
Thanks. I've noticed that the parameter of the subtraction functions
should be named 'underflow', no?
Ali
More information about the Digitalmars-d-learn
mailing list