std.experimental.checkedint is ready for comments!

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 14 16:34:57 PDT 2016


On 6/14/2016 4:25 PM, Walter Bright wrote:
> Thanks for doing this!
>
> On 6/7/2016 1:50 AM, Robert burner Schadek wrote:
>> == SmartInt ==
>> SmartInt smartOp strive to actually give the mathematically correct answer
>> whenever possible, rather than just signaling an error.
>>
>> == SafeInt ==
>> SafeInt safeOp strive to match the behaviour of the basic integral types
>> exactly, $(B except) that where the behaviour of the basic type is wrong, or
>> very unintuitive, an error is signaled instead.
>
>
> What the differences between these types are is unclear, for example, the former
> says "correct" and the latter says "not wrong". Also, "very unintuitive" has a
> pretty slippery meaning.
>

A better explanation:

http://dtest.thecybershadow.net/artifact/website-7cc6e938154f90aa49fa6451a85b13e35ab2de99-bc50ab8ca1b076e361ddc71d706010b7/web/phobos-prerelease/std_experimental_checkedint.html


More information about the Digitalmars-d mailing list