comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: Task Discriminants & Arrays
Date: 1997/05/15
Date: 1997-05-15T00:00:00+00:00	[thread overview]
Message-ID: <337AE917.814@elca-matrix.ch> (raw)
In-Reply-To: 3379C86F.352@this.message


W. Wesley Groleau (Wes) wrote:
> -- write Bob Duff's ID function to ensure that all IDs are in A'Range
> -- instantiate your favorite sort with the "<" above and Matt's array.
> -- declare the array, then sort it.
> -- result:  A(I).ID = I  for all  I in A'Range

You can't sort it because task types are limited and you can't move them
in the array (no assignment). So you have to use access types and thus
allocate the tasks one by one, or sort an array of pointers that point
to the original array, which messes up the program quite a bit.




  reply	other threads:[~1997-05-15  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-13  0:00 Task Discriminants & Arrays Matthew Heaney
1997-05-13  0:00 ` Robert A Duff
1997-05-14  0:00   ` W. Wesley Groleau (Wes)
1997-05-15  0:00     ` Mats Weber [this message]
1997-05-15  0:00     ` Robert A Duff
1997-05-15  0:00       ` John G. Volan
1997-05-15  0:00         ` Robert A Duff
1997-05-16  0:00           ` John G. Volan
1997-05-16  0:00             ` John G. Volan
1997-05-15  0:00         ` Matthew Heaney
1997-05-15  0:00           ` John G. Volan
1997-05-13  0:00 ` Jeff Carter
1997-05-13  0:00   ` John G. Volan
1997-05-14  0:00     ` Jeff Carter
1997-05-13  0:00   ` Matthew Heaney
replies disabled

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