Division by zero
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 3 06:29:16 PDT 2014
On 10/3/2014 6:11 AM, monarch_dodra wrote:
> 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
In any case, a bugzilla issue should be filed for this.
More information about the Digitalmars-d
mailing list