[fpc-pascal] Competitive advantage in showing proof of correctness
Daniël Mantione
daniel.mantione at freepascal.org
Tue Aug 14 23:26:22 CEST 2007
Op Tue, 14 Aug 2007, schreef mm:
> James Smith a =E9crit :
> > Well, I know programmers who turn off range checking and let exceptions
> > fall through empty exception blocks. They don't work with me on project=
s.
> =
> Though it is sometimes the best way of doing. It is sometimes better
> to check ranges explicitly (where it is needed to do so) rather than
> to let the compiler set checks everywhere.
You almost never ship a binary with range checking, since a range check =
crash is for a end user generally as usefull as the protection fault that =
can happen when you disable range checking. The performance penalty of =
range checking is significant.
Range checking during development greatly reduces the change of range bugs =
going unnoticed into the final product. Further, for a developer, a range =
check error is much easier to debug than a crash later in the program =
because a range error caused data strutures to be overwritten.
Dani=EBl
More information about the fpc-pascal
mailing list