Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

Re: Return & Exit

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Richard Ward
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.