<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Mattias wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><blockquote type="cite"> return x;<br></blockquote><blockquote type="cite"><span class="Apple-style-span" style="color: rgb(0, 0, 0); "> funcname := x;</span></blockquote><font class="Apple-style-span" color="#006312"><br></font>exit(x); can be used in mode objfpc.<br></span></blockquote></div><br><div>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.</div></body></html>