comp.lang.ada
 help / color / mirror / Atom feed
From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Multiple Delay alternatives : what it is useful to ?
Date: Wed, 3 Feb 2010 19:47:33 -0800 (PST)
Date: 2010-02-03T19:47:33-08:00	[thread overview]
Message-ID: <77f81f9d-23a2-4d59-a547-c577e009c50c@19g2000yql.googlegroups.com> (raw)

Hi all out there,

[ARM 9.7.1(10)] and [ARM 9.7.1(13)],
http://www.adaic.org/standards/05rm/html/RM-9-7-1.html
explicitly allows multiple Delay alternatives in a Select statement
(finally GNAT was right), as I've checked.

Know I now it is legal, I just wonder why ?

If some delays stand for a time which is sooner than others delays
alternatives, the others will never be triggered. Or they may be ?
Does it have something to deal with variable delay ? If it is, the
runtime will then simply select the sooner ignoring all others ?

And what if two delays stands for the same time ? I do not see
anything which clarify this situation in the RM (may be I've missed
it).

Are they some real life examples of useful multiple delays
alternatives ?

By the way, a sentence is unclear to me : at 9.7.1(10), there is a “
If a selective_accept contains more than one delay_alternative, then
all shall be delay_relative_statements, or all shall be
delay_until_statements for the same time type. ” .... same time type ?
I could not construe these last three words.



             reply	other threads:[~2010-02-04  3:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04  3:47 Hibou57 (Yannick Duchêne) [this message]
2010-02-04  4:47 ` Multiple Delay alternatives : what it is useful to ? Jeffrey R. Carter
2010-02-04  9:26 ` Jean-Pierre Rosen
2010-02-04 18:48   ` Hibou57 (Yannick Duchêne)
2010-02-05 21:55 ` Randy Brukardt
replies disabled

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