"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?
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.
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
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.