Ignoring function return values (was: system.pas)

Sat, 21 Jun 1997 00:07:37 +0200 (MET DST)


According to Frank Heckenbach:
> According to myself (Peter Gerwinski):
> > Ignoring a function's return value *is* a risky thing, because it
> > switches off an error-checking rule which is important for teaching.
> > [...]
> 
> I'd still feel better with a separate switch because I try to avoid pointer
> arithmetic and such things in all but low level or very time critical code,
> but I usually have to ignore some function results.

Perhaps `--ignore-function-return'?

> (Perhaps with function
> overloading, this can be solved cleanly -- could it be possible then to have
> a function and a procedure with the same parameters???)

It would be difficult to implement.  Having the separate switch, I think
it's not worth the effort.

    Peter

 Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
 maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]


Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es