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 _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macports-dev
