From owner-freebsd-hackers Wed Mar 6 21:59:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 87F5137B41A; Wed, 6 Mar 2002 21:59:30 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.2/8.12.2) with ESMTP id g275x8Lv052205; Thu, 7 Mar 2002 06:59:09 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: obrien@FreeBSD.ORG Cc: Garance A Drosihn , Mike Meyer , hackers@FreeBSD.ORG Subject: Re: RFC: style(9) isn't explicit about booleans for testing. In-Reply-To: Your message of "Wed, 06 Mar 2002 19:22:34 PST." <20020306192234.B55297@dragon.nuxi.com> Date: Thu, 07 Mar 2002 06:59:08 +0100 Message-ID: <52204.1015480748@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20020306192234.B55297@dragon.nuxi.com>, "David O'Brien" writes: >Implies??? I thought I was quite explicit: > > to prevent is "if (!strcmp(a,b))" which when read is extremely wrong of > that is actually happening. > >! is pronounced "NOT". When read "if not string compare a with b then do X", >is the opposite of the the logic of the expression does. Which is >"if string compare a with b is equal then do X". ["if (strcmp(a,b) == 0)"] Well, we're clearly into "IMO" land here, so lets ignore that :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message