[fpc-pascal] exitcode

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Dec 28 19:41:10 CET 2008


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



More information about the fpc-pascal mailing list