comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Help needed with tasking
Date: 1996/05/22
Date: 1996-05-22T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.96May22192934@spectre.mitre.org> (raw)
In-Reply-To: 31A33519.41C67EA6@diana1.cs.paisley.ac.uk


In article <31A33519.41C67EA6@diana1.cs.paisley.ac.uk> Richard Francis <com40008@diana1.cs.paisley.ac.uk> writes:

  > I am writing a traffic lights sim using tasking. Can someone help me
  > with how tasks work? You can't call an entry from within another, is
  > that right?

  Why not?  There is a rule in both Ada 83 and Ada 95 that you can't
have an accept statement nested inside another accept statement for
the same entry, but that's all.  (Well, Ada 83 had a "helpful" note
RM839.5(21), which probably caused more confusion than help. Most of
the note is gone from Ada 95.)

  > what else can or can't you do?

  Good question.  The answer used to be that you couldn't have the
same task queued calling two different entries, but Ada 95 fixed
that. (See RM95 9.7.4)   And yes I know that there is an
equivalent implementation that doesn't break the Ada 83 rule, but from
the programmer's point of view you can queue up for as many other
entries as you want. ;-) 

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




  reply	other threads:[~1996-05-22  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-22  0:00 Help needed with tasking Richard Francis
1996-05-22  0:00 ` Robert I. Eachus [this message]
1996-05-23  0:00 ` Pascal Ledru
replies disabled

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