GDC adds intrinsic support for core.checkedint

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 1 14:15:31 PDT 2015


On Tuesday, 30 June 2015 at 20:24:38 UTC, tsbockman wrote:
>     4. Robert has suggested that a SafeInt type should disable 
> bitwise operations like ~, &, |, ^, but I don't understand why.

The name SafeInt and the missing bitwise operations go in tandem.
SafeInt is a math type, +-/*% nothing more. Whenever I saw people 
beginning cleaver and use bitwise operations for math, they 
failed. Me included.

Thats why


More information about the Digitalmars-d mailing list