From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2387 invoked from network); 13 Nov 1998 21:50:08 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 13 Nov 1998 21:50:08 -0000 Received: from druid.inprise.com (druid.inprise.com [143.186.11.70]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA10935 for ; Fri, 13 Nov 1998 16:50:07 -0500 Received: from godzilla.inprise.com (mail.inprise.com [10.186.1.4]) by druid.inprise.com (8.8.8+Sun/8.8.7) with ESMTP id NAA15142 for ; Fri, 13 Nov 1998 13:48:42 -0800 (PST) Received: from inprise.com ([143.186.90.116]) by godzilla.inprise.com (Netscape Messaging Server 3.6) with ESMTP id AAA21CE for ; Fri, 13 Nov 1998 13:48:43 -0800 Message-ID: <364CA933.2E299572@inprise.com> Date: Fri, 13 Nov 1998 13:48:35 -0800 From: "Nicholas Sallembian" Organization: Inprise Corporation X-Mailer: Mozilla 4.05 [en] (WinNT; U) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Any C++ on Alpha gfurus out there? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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