Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Nicholas Sallembian" <nsallembian@inprise.com>
To: axp-list@redhat.com
Subject: Re: Any C++ on Alpha gfurus out there?
Date: Fri, 13 Nov 1998 13:48:35 -0800	[thread overview]
Message-ID: <364CA933.2E299572@inprise.com> (raw)
In-Reply-To: Pine.LNX.4.04.9811131122320.1080-100000@earth.terran.org

My apologizes for that rough error. I should not have said that without
actually trying the code ...

Nicolas.

B. James Phillippe wrote:

> 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 :/
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com




  reply	other threads:[~1998-11-13 21:50 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
1998-11-13 21:48     ` Nicholas Sallembian [this message]
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