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,854fe8372d0921a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-22 03:25:14 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsgate.cistron.nl!skynet.be!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: array for all tasks Date: Mon, 22 Dec 2003 10:45:13 +0100 Organization: AdaCL Message-ID: <10833879.SThZFdkLlq@linux1.krischik.com> References: <3fe43a4c$1@news.barak.net.il> 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 1072092274 07 25516 ikYXGm7rclc6SDAl 031222 11:24:34 X-Complaints-To: usenet-abuse@t-online.de X-ID: rGyKPgZTreWw6RPTvB5IO8eG84IdMqYEvHMn0UYQsQh7VnUCagZ9ra User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:3693 Date: 2003-12-22T10:45:13+01:00 List-Id: Ratson Janiv wrote: > Hi, > I have a task with 3entries. > The first entry set an array size: > accept Start(Array_Size:Natural); > declare > > Arr_Checks : Arr2(1..Array_Size); > > begin ... > > The other 2 tasks need to use this array. > how do I implement that, so the other tasks will also know and may use the > array? Arr_Checks'Length Arr_Checks'First Arr_Checks'Last But do read about protected object before continuing. As other posters pointed out protected objects might be better. I certanly would use a protected object. You might also look at how I have solved a similar problem: http://adacl.sourceforge.net/html ______Include__AdaCL-Queue-Protect__adb.htm http://adacl.sourceforge.net/html/______Include__AdaCL-Queue-Tasked__adb.htm With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com