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

Bart bartjunk64 at gmail.com
Mon Oct 19 19:08:06 CEST 2009


Jonas,

I might be just babbling, since I really have no idea how it's done, but:

In the code that "translates" the "you did something nasty" to
runerror(some_exit_code) it may be possible to differentiate between
float and integer fault?
This info could then be stored in some variable/object that can be
used by the code that intercepts the run-time error and raises the
actual fpc exception?

Bart



More information about the fpc-pascal mailing list