From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8042 invoked from network); 13 Nov 1998 19:25:16 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 13 Nov 1998 19:25:16 -0000 Received: from earth.terran.org (bryan@earth.terran.org [208.152.24.33]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA04837 for ; Fri, 13 Nov 1998 14:25:14 -0500 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.9) with ESMTP id LAA01187 for ; Fri, 13 Nov 1998 11:25:37 -0800 Date: Fri, 13 Nov 1998 11:25:37 -0800 (PST) From: "B. James Phillippe" To: axp-list@redhat.com Subject: Re: Any C++ on Alpha gfurus out there? In-Reply-To: <364C85B9.5DC8AD59@inprise.com> Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 :/