[fpc-pascal]exception handling

vkrish at vkrish.cjb.net vkrish at vkrish.cjb.net
Wed Mar 17 16:07:00 CET 2004



> >
> >         try
> >             readln(NewAlbum.Year);
> >         except
> >             on EConvertError do NewAlbum.Year := 0;
> >         end;
> 
> This should be:
> 
> 
>       try
>            readln(NewAlbum.Year);
>       except
>           on E : EConvertError do NewAlbum.Year := 0;
>       end;
> 
What are the costs of using exceptional handling ? Is the overhead similar to that incurred by C++ programs ?

cheers,
-Krish





More information about the fpc-pascal mailing list