[fpc-pascal] Verify if string is a valid number

Michael Van Canneyt michael at freepascal.org
Sun Nov 23 18:30:37 CET 2008



On Sun, 23 Nov 2008, Graeme Geldenhuys wrote:

> On Sun, Nov 23, 2008 at 6:23 PM, Johann Glaser <Johann.Glaser at gmx.at> wrote:
> > Always avoid exceptions if possible, since they are very costly in terms
> > CPU time.
> 
> I know this was the rule of thumb in Delphi 5-7 days... Does this
> still apply today, with newer compilers and much faster CPU's?  Just
> curious...

Yes. The code must save all registers, set a jump point etc. Quite costly.

Michael.



More information about the fpc-pascal mailing list