From: sbdpumbaa@aol.com (bendel boy)
Subject: Re: Ada (was Rival JSF teams fly final STOVL flights with flair, highlight strengths)
Date: 9 Aug 2001 15:20:42 -0700
Date: 2001-08-09T22:20:42+00:00 [thread overview]
Message-ID: <4db10a80.0108091420.7ea3c2e9@posting.google.com> (raw)
In-Reply-To: 3b716b22_1@news.iglou.com
"John Keeney" <jdkeeney@iglou.com> wrote in message news:<3b716b22_1@news.iglou.com>...
> Matthew V. Jessick <mjessick@gte.net> wrote in message
> news:3B6F73F9.15E98173@gte.net...
> > The if (A=B) { mistake where B is copied into A and if non-zero
> > the if condition is true.
>
> Actually, I've writen this code more than a few times, and meant it.
> Generally more in context of loops though.
But why would you want to mean this?
For my money, I would prefer the Algol approach:
if (0 = A := B) then
which would be interpreted as
(i) assign B to A -- assignment clause
(ii) test if A is zero -- logical clause
The C code makes use of a confusing short-cut, allowing confusion
between assignment, numbers, and booleans. Great for the experienced
programmer - fatal for the follow-on maintenance.
next prev parent reply other threads:[~2001-08-09 22:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BaJ97.18$IC4.17757353@newssvr16.news.prodigy.com>
[not found] ` <945d79ff.0107312306.4665e855@posting.google.com>
[not found] ` <3b67fd90_2@binarykiller.newsgroups.com>
[not found] ` <421a7.235$0e7.91390140@newssvr16.news.prodigy.com>
[not found] ` <3B6A1179.26C1C04@home.com>
[not found] ` <3B6A15C3.8B3A9277@home.com>
2001-08-05 22:57 ` Ada (was Rival JSF teams fly final STOVL flights with flair, highlight strengths) Ken Garlington
2001-08-06 0:33 ` Bob Fritz
2001-08-06 8:33 ` Tony Gair
2001-08-07 3:31 ` Ken Garlington
2001-08-08 20:21 ` Mark
2001-08-07 3:31 ` Ken Garlington
2001-08-06 15:51 ` Ted Dennison
2001-08-07 4:51 ` Matthew V. Jessick
2001-08-08 16:39 ` John Keeney
2001-08-09 22:20 ` bendel boy [this message]
2001-08-08 17:58 ` Emmanuel Gustin
2001-08-08 19:24 ` Marin David Condic
2001-08-09 22:28 ` bendel boy
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox