From: gvls1!aviary!dmarshal@louie.udel.edu (Dave Marshall)
Subject: Re: conditional entry call ?
Date: 23 Sep 92 21:08:02 GMT [thread overview]
Message-ID: <1747@aviary.Stars.Reston.Unisys.COM> (raw)
In article <1992Sep22.232926.25966@cs.uno.edu>, shengru@cs.uno.edu (Shengru Tu)
writes:
> But is the following code legal, where I put another entry call stmt in
> the position of "stmt":
> ...
> select
> T2.E2;
> or
> T3.E3;
> end select;
> ...
>
That code is not legal. I humbly offer the following substitute construct:
LRM 9.7.2 presents an example procedure SPIN to demonstrate select-else.
One could similarly do the following (although it's bogus, IMHO):
loop
select
T2.E2;
exit;
else
select
T3.E3;
exit;
else
null;
end select;
end select;
end loop;
The moral: If you find yourself compelled to implement a select-or construct,
maybe you should reevaluate the way you're doing things. The code I have
presented is garbage, and it should be used only if absolutely necessary.
--
Dave Marshall
dmarshal@stars.reston.unisys.com
next reply other threads:[~1992-09-23 21:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-09-23 21:08 Dave Marshall [this message]
-- strict thread matches above, loose matches on Subject: below --
1992-09-23 17:49 conditional entry call ? Bob Kitzberger
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox