Nicholas Clark <[EMAIL PROTECTED]> writes:
> (doing stuff on out of range signed values is undefined behaviour, IIRC)
Yes, that's right. Some GCC optimizations rely on the fact that
signed integer calculations can never overflow.
Dan Sugalski <[EMAIL PROTECTED]> writes:
> .NET has exception-throwing versions of its math operations. If you do
> an add of two 8-bit integers and the result overflows, you should get
> an exception (if you've used the "check overflow" versions of the ops)
Actually, I thought about implementing
Philippe 'BooK' Bruhat <[EMAIL PROTECTED]> writes:
> I suppose it's very doable to have a FrenchPerl6 editor/parser/whatever
> that makes most of this transparent, but the thing I like the most about
> programming languages it that their are foreign languages.
Microsoft once made a huge experimen
Juergen Boemmels <[EMAIL PROTECTED]> writes:
> Without varargs macros this is not really simple. (IIRC they are
> introduced in C99, but are in gcc for years now).
Indeed, C99 standardized them, but in a way that differs from GCC.
"Iacob Alin" <[EMAIL PROTECTED]> writes:
> This might be a stupid question, but are this datatypes going to be
> PMCs?
And a related question: What about trapping integer arithmetic?