Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!wiley!trwarcadia!simpson From: simpson@trwarcadia.uucp (Scott Simpson) Newsgroups: comp.lang.ada Subject: Re: Question about Ada expressions Message-ID: <5828@wiley.UUCP> Date: 15 Oct 89 20:35:08 GMT References: <8910122337.AA06188@grebyn.com> Sender: news@wiley.UUCP Reply-To: simpson@trwarcadia.UUCP (Scott Simpson) Followup-To: comp.lang.c Organization: TRW Arcadia Project, Redondo Beach, CA Lines: 11 In article <8910122337.AA06188@grebyn.com> karl@grebyn.com (Karl Nyberg) writes: >I had a friend call yesterday after spending five hours trying to figure out >why some C code didn't work based on this expression: > > if (variable & MASK == VALUE) Your buddy didn't use lint. It would have caught this. Scott Simpson TRW Space and Defense Sector usc!trwarcadia!simpson (UUCP) trwarcadia!simpson@usc.edu (Internet)