[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EX_USAGE?



>>>>> "Marc" == Marc Feeley <feeley@xxxxxxxxxxxxxxxx> writes:

Marc> While I'm on the subject, I can't say I'm very fond of having main
Marc> return a status code.  I don't like it for C and I don't like it for
Marc> Scheme.  Main should be a procedure.  If main returns normally, then
Marc> the result is ignored and the EX_OK status code is returned from the
Marc> script.  You can always call "error" to return an EX_SOFTWARE (this
Marc> will work even if "error" is not defined!...). 

We know.  We though about this.  We disagree.  I'll confer with Martin
once he's out of the swamp, so we should have something by Monday or
Tuesday.

Marc> but this is needlessly ugly, and it still contains a reference to 0
Marc> for EX_OK, which will throw off beginners for sure.  In fact, what
Marc> happens in your proposal if main does not return an exact integer, or
Marc> returns an integer outside the acceptable range?

That's a good point, but the issue is trivially resolved.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla