From: "B. James Phillippe" <bryan@terran.org>
To: axp-list@redhat.com
Subject: Re: Any C++ on Alpha gfurus out there?
Date: Fri, 13 Nov 1998 11:25:37 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.04.9811131122320.1080-100000@earth.terran.org> (raw)
In-Reply-To: <364C85B9.5DC8AD59@inprise.com>
On Fri, 13 Nov 1998, Nicholas Sallembian wrote:
> Try this code :
...
> if (wd)
> if (wd->m_id==id)
...
> There might be a problem in the order the if expression is evaluated : if
> wd is NULL and wd->m_id is evaluated first... Crash !
[over the original code] :
> > if (wd && (wd->m_id==id))
I sincerely hope that is not the problem; it is very clearly defined in the
C programming language that logical AND and OR operations proceed from left
to right.
-bp
--
B. James Phillippe . bryan@terran.org
UNIX Software Engineer . http://www.terran.org/~bryan
Member since 1.1.59 . finger:bryan@earth.terran.org
MOTM: Waiting for the DSL to go in :/
next prev parent reply other threads:[~1998-11-13 19:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-13 19:10 Any C++ on Alpha gfurus out there? Brian E.W. Wood
1998-11-13 19:17 ` Nicholas Sallembian
1998-11-13 19:25 ` B. James Phillippe [this message]
1998-11-13 21:48 ` Nicholas Sallembian
1998-11-14 1:06 ` Bob McElrath
1998-11-14 13:20 ` sterwill
1998-11-14 17:37 ` Brian E.W. Wood
1998-11-13 19:26 ` Anders Hammarquist
1998-11-13 19:37 ` Heinz Ulrich Stille
1998-11-16 3:50 ` Michael J. Donahue
1998-11-16 13:15 ` Stefan Schroepfer
1998-11-16 13:45 ` Paul Tomblin
1998-11-16 14:24 ` Stefan Schroepfer
1998-11-16 14:43 ` Leo
-- strict thread matches above, loose matches on Subject: below --
1998-11-16 14:49 Leo
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox