From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,51359402da60c472 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-17 13:25:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: DYNAMIC ADA TASK CREATION? Date: 17 Jun 2003 21:24:31 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1055881517 10224 62.49.19.209 (17 Jun 2003 20:25:17 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 17 Jun 2003 20:25:17 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:39364 Date: 2003-06-17T21:24:31+01:00 List-Id: "avram" writes: > How to create dynamic for example N tasks. I don't know how create N of > tasks and array (not list). For example user interface gets an Integer (N) > from user and then we create N number of Task in ADA. How to do this?Can > anybody help me? (uncompiled) task type t is -- some entries end t; task body t is begin -- code end t; type ts is array (positive range <>) of t; n : positive; begin -- read in n declare the_ts : ts (1 .. n); begin -- do something with the tasks -- NB, can't pass this point until all the tasks have terminated end;