[fpc-pascal] exit ?

Paul Davidson pdavidson at coraxnetworks.com
Wed May 25 18:39:34 CEST 2005

Perhaps combinations of RESULT and EXIT may help?
   if TimeToLeave then begin
     Result := 5;
   end else ....

On May 25, 2005, at 12:33, Jonas Maebe wrote:

> On 25 mei 2005, at 18:20, Tony Pelton wrote:
>> over and above any philisophical judgments on my programming
>> technique, I see Free Pascal has a reserved word 'exit' that mimics
>> "return" ?
> Yes.
>> 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"). It may exist in Delphi (I've never 
> used Delphi), but it definitely does not exist in Turbo 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.
>> is there another token that i could/should use ?
> Not that I can think of.
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
P Davidson
Corax Networks Inc.

IMPORTANT NOTICE:  This message is intended only for the use of the 
individual or entity to which it is addressed. The message may contain 
information that is privileged, confidential and exempt from disclosure 
under applicable law.  If the reader of this message is not the 
intended recipient, or the employee or agent responsible for delivering 
the message to the intended recipient, you are notified that any 
dissemination, distribution or copying of this communication is 
strictly prohibited.  If you have received this communication in error, 
please notify Corax Networks immediately by email at 
webmaster at coraxnetworks.com.  Thank you.

More information about the fpc-pascal mailing list