GDC adds intrinsic support for core.checkedint
Matthias Bentrup via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 3 01:53:29 PDT 2015
On Friday, 3 July 2015 at 08:09:11 UTC, Robert burner Schadek
wrote:
> On Friday, 3 July 2015 at 02:17:59 UTC, Timon Gehr wrote:
>> On 07/03/2015 04:17 AM, Timon Gehr wrote:
>>>
>>> Bitwise are no math operations, these are CS operations
>>
>> What does that even mean?
>
> That there are no bitwise operations in math.
You imply math == arithmetic, which is false. If you take a look
at e.g. Algebraic Coding Theory, it basically uses bitwise
operations to model polynominal arithmetic.
If you want a mathematically correct representation of the
integers modulo 2^n (which is what most closely resembles an int
in math), you'll also have to disallow the less than and greater
than operators, as they cannot be defined sensibly on a cyclic
group.
More information about the Digitalmars-d
mailing list