On 28 Dec 2008, at 19:31, Rainer Stratmann wrote:
Am Sonntag, 28. Dezember 2008 18:59 schrieb Jonas Maebe:
On 28 Dec 2008, at 18:16, Rainer Stratmann wrote:
Where is the earliest position to set the exitcode?
What do you mean with "position"?
Which unit first executes to set the exitcode as early as possible.
The exit code is initialised as 0. You cannot set it to something else
without at the same time terminating the program (using the halt()
procedure). Well, you can change it, but it will be overwritten with
the actual exit code when the program really terminates (the parameter
of halt, or a run time error number).
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal