From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b98a26890a2d400 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-17 18:54:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!cyclone1.gnilink.net!wn11feed!wn14feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc02.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <3E281B97.76F47E30@noSpam.raytheon.com> Subject: Re: Keyword "null" Question X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc02 1042858444 12.211.13.75 (Sat, 18 Jan 2003 02:54:04 GMT) NNTP-Posting-Date: Sat, 18 Jan 2003 02:54:04 GMT Organization: AT&T Broadband Date: Sat, 18 Jan 2003 02:54:04 GMT Xref: archiver1.google.com comp.lang.ada:33165 Date: 2003-01-18T02:54:04+00:00 List-Id: Is "SOME_EVENT_TOOK_PLACE" a function? If so this is one way of discarding the result. If "SOME_EVENT_TOOK_PLACE" is a variable this may have been a trick to keep the compiler from complaining about an unused variable or an optimizer removing the variable altogether. If you have the original development environment available you might just try compiling with the code commented out. The result may give you your answer. Steve (The Duck) "Michael Bustillo" wrote in message news:3E281B97.76F47E30@noSpam.raytheon.com... > While reviewing the Ada LRM, it makes note that the Ada keyword "null" > does nothing except pass to the next statement. This seems intuitive > enough, however... > > I'm currently attempting to reverse engineer some code so that it can be > converted to another language, and I've run across the following: > > if SOME_EVENT_TOOK_PLACE then > null; > end if; > > This statement is simply standing alone by itself, not part of any > "case-like" structure or anything sneaky. I guess my question is when > it says "...it does nothing..." does it actually mean that it is putting > a NO OP there? Because then this would actually be doing something, > most likely a timing issue, and that's what I need to know. > > I appreciate your time, and thanks. >