[fpc-pascal] Re: Return & Exit

Richard Ward roward at mac.com
Mon Apr 13 00:06:20 CEST 2009

Mattias wrote:

>>   return x;
>>   funcname := x;
> exit(x); can be used in mode objfpc.

OK.   Thanks.   That will be more portable than return since objpas is  
fairly common.   Return is a bit simpler syntactically but exit  
performs the same way which is more important to having to change or  
not having to change the structure of the code and will be simpler to  
change if needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20090412/3e64a6ae/attachment.html>

More information about the fpc-pascal mailing list