GDC adds intrinsic support for core.checkedint

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 2 04:26:22 PDT 2015


On Thursday, 2 July 2015 at 00:29:46 UTC, rsw0x wrote:
> all bitwise ops except for shifting are fundamental math 
> operators just like addition and subtraction if you view an 
> integer as a bitstring(which is what it is...)

I must have missed something in my math classes.

"Like the natural numbers, Z is closed under the operations of 
addition and multiplication" [1]

build in Integer are not really closed, but close enough.
No mentioning of shift operations though.

[1] https://en.wikipedia.org/wiki/Integer




More information about the Digitalmars-d mailing list