Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2001 06:37:40 -0600
From:      "Jacques A. Vidrine" <n@nectar.com>
To:        Ben Smithurst <ben@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/share/man/man9 style.9
Message-ID:  <20010221063740.A7576@spawn.nectar.com>
In-Reply-To: <20010221141342.A98551@ringworld.oblivion.bg>; from roam@orbitel.bg on Wed, Feb 21, 2001 at 02:13:42PM %2B0200
References:  <200102211210.f1LCAKN41997@freefall.freebsd.org> <20010221141342.A98551@ringworld.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 21, 2001 at 02:13:42PM +0200, Peter Pentchev wrote:
> I've sometimes seen tests like:
> 
> 	if (error = function(a1, a2), error != 0)
> 
> Is this not a bit clearer?

<supressing retch>
Oh no.

If you are offended by ((foo = bar()) != 0), then expand it normally:

   foo = bar();
   if (foo != 0) ...

Cheers,
-- 
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010221063740.A7576>