[fpc-pascal]Constructor failing...

Peter Vreman peter at freepascal.org
Wed Mar 19 10:29:01 CET 2003


> Hi again -
>
> another question; what is the best way to "fail" a constructor call? For
> example, I have a constructor "timage.loadimage()", and I want it to
> return
> "nil" if it encounters a problem (e.g. the file name doesn't exist). My

Use fail :-)






More information about the fpc-pascal mailing list