[fpc-pascal] exit ?

Adriaan van Os fpc at microbizz.nl
Wed May 25 18:57:36 CEST 2005

Jonas Maebe wrote:

>> Is some analogy to "return" not supported in the official pascal 
>> dialect ?
> exit with a parameter is not supported in other compilers afaik (e.g. 
> exit(5), equivalent to "return 5").

UCSD Pascal has

EXIT( procedurename)
EXIT( programname)

Macintosh Pascal compilers support EXIT( procedurename) and EXIT( 
PROGRAM). EXIT( procedurename) has been implemented in GNU Pascal 

>> is 'exit' the only way to do this, and obviously, not portable to
>> other compilers ?
> Exit without a parameter is supported in Turbo Pascal and Delphi.

Delphi has the built-in "Result" variable and GNU Pascal (also) has 


Adriaan van Os

More information about the fpc-pascal mailing list