Michael Sperber scripsit:
> If the final expression in a script returns, the script is assumed to
> have run successfully, and the return value is ignored. When the
> default exception handler of the script is invoked, the script is
> assumed to have run unsuccessfully. The condition object provided
> with the exception may be used to report a status to the operating
> system. Specifically, a &message condition may specify a string to be
> used as a status on operating systems where this makes sense, and and
> &exit-code condition may specify an exact integer to be used on
> operating systems where this makes sense.
I agree with Marcin that invoking the exception should not necessarily
indicate failure. How about this wording?
# If the final expression in a script returns, the return value is ignored
# and an an indication of success is passed back to the operating system.
# When the default exception handler of the script is invoked, the condition
# object provided with the exception may be used to report a status to
# the operating system. Specifically [etc.]
> I'm not familiar with Plan 9. Would this seem acceptable to you?
Yes. (The indication of success on Plan 9 is by convention to return
the empty string, corresponding to a return of 0 in Posix.)
--
Even the best of friends cannot John Cowan
attend each others' funeral. cowan_at_ccil.org
--Kehlog Albran, The Profit http://www.ccil.org/~cowan
Received on Thu Oct 05 2006 - 11:48:35 UTC