comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Tasks vs Task Types
Date: 1996/05/07
Date: 1996-05-07T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.96May7193912@spectre.mitre.org> (raw)
In-Reply-To: 4mofak$vtc@watnews1.watson.ibm.com


In article <4mofak$vtc@watnews1.watson.ibm.com> ncohen@watson.ibm.com (Norman H. Cohen) writes:

  > Often it is desired to create only one task belonging to a particular
  > task type.  In that case, there is a notational shorthand:  If you leave
  > the word "type" out of the declaration, it declares both an anonymous
  > type and a single task object belonging to that type...

    True but slightly misleading.  Every time the task object
declaration is elaborated, it creates a task.  All these tasks have
the same anonymous type.  In Ada 83 it was a challenge to find cases
where this mattered, ;-) In Ada 95 it is somewhat important,
especially when using some of the features of the systems programming
annex.

    But most Ada programmers never put task object declarations inside
recursively called subprograms.

--

					Robert I. Eachus

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




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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-07  0:00 Tasks vs Task Types Michael Levasseur
1996-05-07  0:00 ` Norman H. Cohen
1996-05-07  0:00   ` Robert I. Eachus [this message]
1996-05-08  0:00 ` David Tannen
     [not found] <3191319D.2781E494@escmail.orl.mmc.com>
1996-05-10  0:00 ` David Tannen
replies disabled

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