9.7 Select Statements
From OC Systems Wiki!
< Guide:95lrm
Revision as of 10:51, 30 April 2019 by imported>WikiVisor
There are four forms of the select_statement. One form provides a selective wait for one or more select_alternatives. Two provide timed and conditional entry calls. The fourth provides asynchronous transfer of control.
Syntax
select_statement ::= selective_accept | timed_entry_call | conditional_entry_call | asynchronous_select
Examples
Example of a select statement:
select
accept Driver_Awake_Signal;
or
delay 30.0*Seconds;
Stop_The_Train;
end select;
Copyright © 1992,1993,1994,1995 Intermetrics, Inc.
Copyright © 2000 The MITRE Corporation, Inc.
Ada Reference Manual