comp.lang.ada
 help / color / mirror / Atom feed
From: Lutz Donnerhacke <lutz@iks-jena.de>
Subject: Re: Keyword "null" Question
Date: Fri, 17 Jan 2003 15:10:10 +0000 (UTC)
Date: 2003-01-17T15:10:10+00:00	[thread overview]
Message-ID: <slrnb2g76c.nm.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 3E281B97.76F47E30@noSpam.raytheon.com

* Michael Bustillo wrote:
>     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?

For the null statement: Yep.

> Because then this would actually be doing something,
> most likely a timing issue, and that's what I need to know.

No. If SOME_EVENT_TOOK_PLACE is pure, the whole IF statement is a NO OP.
Otherwise it's the same as
  declare
     dummy : constant Boolean := SOME_EVENT_TOOK_PLACE;
  begin
     null;
  end;



  reply	other threads:[~2003-01-17 15:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-17 15:04 Keyword "null" Question Michael Bustillo
2003-01-17 15:10 ` Lutz Donnerhacke [this message]
2003-01-17 23:16   ` Jeffrey Carter
2003-01-17 15:46 ` Mark Johnson
2003-01-17 16:35 ` Peter Amey
2003-01-17 17:31   ` Pascal Obry
2003-01-17 17:40     ` Larry Kilgallen
2003-01-17 18:16   ` Warren W. Gay VE3WWG
2003-01-18  2:54 ` Steve
2003-01-18 14:46 ` Marin David Condic
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox