Division by zero

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 3 06:11:56 PDT 2014


On Friday, 3 October 2014 at 12:55:35 UTC, Adam D. Ruppe wrote:
> 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)...

Technically, the doc is also wrong for windows, since it's an 
*Error* that is thrown:
object.Error@(0): Integer Division by 0


More information about the Digitalmars-d mailing list