[fpc-pascal] Division by Zero: EDivByZero and EZeroDivide

Bart bartjunk64 at gmail.com
Mon Oct 19 11:03:58 CEST 2009


Hi all,

Interesting thoughts.

However, if we raise an exception, why do we raise EDivByZero instead
of EZeroDivide?

Note: EDivByZero = class(EIntError), so IMHO it makes no sense to
raise it with a floating point error.

Bart



More information about the fpc-pascal mailing list