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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bcfc1b9a77ff8cc0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-29 10:31:13 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: my program Date: Mon, 29 Dec 2003 19:16:57 +0100 Organization: AdaCL Message-ID: <1373195.LCZ9VAWE5h@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1072722629 06 21512 0dyJGstLoje0fzt 031229 18:30:29 X-Complaints-To: usenet-abuse@t-online.de X-ID: E4XoQqZDYe-4xUTG9aTFzruYaiCdd8EAstjk3j9vOwb3C4j9VJrurY User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:3931 Date: 2003-12-29T19:16:57+01:00 List-Id: Kasia Krysiak wrote: > I'm start to lern ada , and i have some problems... > this is my new program, and i have a question how to inicialize > Task1:Male(Id=>1); Task2:Male(Id=>2); task3:male(id=>3); (last 3 lines of > code in loop? becouse i should to have the number od male dymaic. I > tryided Tasks types can be created dynamicly on the heap using new. You can also have an array of access to a task type: type Male_Access is access Male; type Male_Array is array (Positive range <>) of Male_Access; Tasks : Male_Array := ( new Male(Id=>1); new Male(Id=>2); new Male(id=>3); Now you can have as many as you like. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com