This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
RE: cygcheck exit status
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin-patches at cygwin dot com>
- Date: Wed, 6 Jul 2005 15:50:04 +0100
- Subject: RE: cygcheck exit status
----Original Message----
>From: Eric Blake
>Sent: 06 July 2005 15:19
>
> But I hate thinking in negative logic, hence my definition of cygcheck to
> return true on success.]
Mneh. I don't like boolean success-fail return values full stop. They
convey too little information and then need to be supplanted with hideous
kludges such as global variables called errno or subsidiary function calls
called GetLastError. The standard POSIX design of returning zero for
success or a non-zero error code for failure is now something that's so much
second nature I don't even think of it as negative logic.
However this should not be taken as any opposition to your proposed patch!
cheers,
DaveK
--
Can't think of a witty .sigline today....