# from David Cantrell
# on Wednesday 06 January 2010 03:48:

>Exiting with a 0 status would seem to be the least clunky solution.
>exit(0) means "Stop now and claim to have succeeded"

But you didn't succeed because something's wrong and thus on the way out 
you must mention to the poor user what that might be.  I suppose if we 
had a leave() function, you could get something like 'warn "can't 
install without ..."; exit 0' from 'leave "can't install without ..."', 
but we don't because a successful program doesn't have anything to say 
because there's nothing wrong.

--Eric
-- 
Moving pianos is dangerous.
Moving pianos are dangerous.
Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to