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)
EXIT( PROGRAM)

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

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 "Return".

Regards,

Adriaan van Os


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to