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.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal