From owner-freebsd-chat Tue Jan 23 7:13:50 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mail.bfm.org (mail.bfm.org [216.127.218.26]) by hub.freebsd.org (Postfix) with ESMTP id 63A5037B699 for ; Tue, 23 Jan 2001 07:13:30 -0800 (PST) Received: from WhizKid (r9.bfm.org [216.127.220.105]) by mail.bfm.org (Post.Office MTA v3.5.3 release 223 ID# 0-52399U2500L250S0V35) with SMTP id org for ; Tue, 23 Jan 2001 09:15:33 -0600 Message-Id: <3.0.6.32.20010123091354.009de7c0@mail85.pair.com> X-Sender: whizkid@mail85.pair.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Tue, 23 Jan 2001 09:13:54 -0600 To: freebsd-chat@FreeBSD.ORG From: "G. Adam Stanislav" Subject: Re: C style continued.... (Craig and Terry) In-Reply-To: <3A6D5B2D.F0AEE70C@online.no> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 11:21 23-01-2001 +0100, Tore Lund wrote: >Agree, and if it really were a problem, one ought to write: > > if (0 == i) { > foo(i); > bar(i); } Of course, the whole problem with this example is not the formating style, but the unnecessary use of a variable. It should be changed to: if (!i) {foo(0); bar(0);} Cheers, :) Adam --- Whiz Kid Technomagic - brand name computers for less. See http://www.whizkidtech.net/pcwarehouse/ for details. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message