comp.lang.ada
 help / color / mirror / Atom feed
From: Alejandro Villanueva <190921@cepsz.unizar.es>
Subject: select ... or delay ... end select
Date: 2000/10/20
Date: 2000-10-20T16:23:16+00:00	[thread overview]
Message-ID: <39F06DC0.55772F5B@cepsz.unizar.es> (raw)

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

Dear Sirs,

Maybe I'm more stupid that I think I am but... why doesn't this code
work???


--
------------------------------------------------------
�Quieres Cobrar por Navegar en Internet?
Visita: http://www.navegana.com/dinero/flintstone.html
------------------------------------------------------
Alejandro Villanueva
190921@cepsz.unizar.es
------------------------------------------------------



[-- Attachment #2: condition.adb --]
[-- Type: text/plain, Size: 368 bytes --]

with Text_IO; use Text_IO;
procedure Condition is
   US: String (1..1);
   UI: Integer;
   task Wait is
      entry Ok;
   end Wait;
   task body Wait is
   begin
      Get_Line (US, UI);
      accept Ok;
   end Wait;
begin
   select
      Wait.Ok;
      Put_Line ("True");
   or
      delay Duration (1.0);
      Put_Line ("False");
   end select;
end Condition;
   

             reply	other threads:[~2000-10-20  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-20  0:00 Alejandro Villanueva [this message]
2000-10-20  0:00 ` select ... or delay ... end select Alejandro Villanueva
2000-10-21  0:00 ` Robert Dewar
2000-10-23  0:00   ` Alejandro Villanueva
replies disabled

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