At 10:33 PM +0100 11/24/02, Florian Weimer wrote:
Just becaues the base math ops don't throw exceptions doesn't mean that there can't be exception-throwing versions. :) We should get those added. Need to get exceptions done first, at least partially.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 Ada. The standard requires the following: 20. For a signed integer type, the exception Constraint_Error is raised by the execution of an operation that cannot deliver the correct result because it is outside the base range of the type. And this is painfully to implement if the machine doesn't support it (e.g. by overflow flags or trapping arithmetic).
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk