Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 1998 13:44:03 +0100
From:      Eivind Eklund <eivind@yes.no>
To:        shimon@simon-shapiro.org
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: A question about sys/sys/queue.h
Message-ID:  <19980314134403.44728@follo.net>
In-Reply-To: <XFMail.980313095459.shimon@simon-shapiro.org>; from Simon Shapiro on Fri, Mar 13, 1998 at 09:54:59AM -0800
References:  <19980313121330.54903@follo.net> <XFMail.980313095459.shimon@simon-shapiro.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 13, 1998 at 09:54:59AM -0800, Simon Shapiro wrote:
> 
> On 13-Mar-98 Eivind Eklund wrote:
>  ...
> 
> > For any onlookerss: You can't get the correct binding with if ()
> > tricks, BTW.  Stick with the good old "do { ... } while(0)"
> 
> What you are describing is probably a compiler (or maybe even
> language) deficiency.   ``do { ... } while (0)'' should be identical to
> ``{ ... }'' as they both do logically, the same thing.

Again, for onlookers: It's a language 'feature'.  Off the top of my
head, I can't think of any way of parsing this that would be cleaner.
(Any follow-ups to chat, please)

Eivind.

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



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