comp.lang.ada
 help / color / mirror / Atom feed
From: Larry Coon <lmcoon@home.com>
Subject: Tasks with discriminants
Date: 1997/12/02
Date: 1997-12-02T00:00:00+00:00	[thread overview]
Message-ID: <3483C38C.1FF2@home.com> (raw)


I've been playing with discriminants for tasks and I
can't get something to work.  I can declare a task
such as the following:

     task type t (task_no: integer);

And later create actual tasks:

     t1: t (1);
     t2: t (2);
     t3: t (3);   -- etc...

But if I want to declare an array of tasks, I
can't figure out how to supply values for the
discriminants:

     type task_array is array (1..3) of t;
     my_tasks: task_array;   -- ????

Can anybody tell me how the discriminants are
supplied in this case?  Thanks in advance.

Larry Coon
University of California
larry@assist.org
and lmcoom@home.com




             reply	other threads:[~1997-12-02  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-02  0:00 Larry Coon [this message]
1997-12-02  0:00 ` Tasks with discriminants Gerald Kasner
1997-12-02  0:00 ` Mats Weber
1997-12-11  0:00 ` Joh Harbaugh
replies disabled

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