Division by zero
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 3 05:55:34 PDT 2014
On Friday, 3 October 2014 at 12:31:54 UTC, Marc Schütz wrote:
> "For integral operands of the / and % operators, [...]. If the
> divisor is zero, an Exception is thrown."
It should probably just say that is implementation defined. I'm
pretty sure it does throw an exception on Windows (at least 32
bit), but doing that on linux is a pain in the butt since the
operating system sends a signal and transformaing that into an
exception is hacky.
More information about the Digitalmars-d
mailing list