[100496] trunk/dports/math/slepc/Portfile

Joshua Root jmr at macports.org
Tue Dec 18 11:03:26 PST 2012

On 2012-12-19 05:51 , Ryan Schmidt wrote:
> It's confusing enough that we already have two equivalent ways to exit out of a portfile: "return -code error" which I think is what we prefer, and simply "error" which some portfile authors are using instead. We don't need yet a third way to do the same thing.

We don't define either of those, they're vanilla Tcl. The difference is
that "error" raises an error in the current context, while "return -code
error" raises it in the calling context (as though the caller had called
"error" in place of the procedure that is returning).

See "man n error", "man n return".

- Josh

More information about the macports-dev mailing list