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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec4a7355f321a22b X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 25 May 2004 16:22:47 -0500 Date: Tue, 25 May 2004 17:22:47 -0400 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Task discriminants References: <40ACC50E.9040406@mail.usyd.edu.au> <3191556.otblUWQ27X@linux1.krischik.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <_c6dnXnTgZe6JC7dRVn-sQ@comcast.com> NNTP-Posting-Host: 24.147.90.114 X-Trace: sv3-if95ral/oihRpi9QTi0EW71L0aqrseoFSWHTgozPVWZftDW5UKu+8yJoH/Ktt2L+Khlq2ZZe2KljsJm!7Ceu367MSl4vzSnIbW7l+Ru6KdYmFdlMFhOANC77aIBmF2QTHB/k8Y3j5kYWFQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: controlnews3.google.com comp.lang.ada:829 Date: 2004-05-25T17:22:47-04:00 List-Id: Pascal Obry wrote: >>No, you certainly can have arrays of tasks, even arrays of tasks with >>discriminants. But you can't have an array of tasks with different >>discriminants, only because there is no way to initialize it. You can wait >>for Ada 2005, > > > I'm currious now, can you point me to the right AI that will make this > possible ? It will be a side-effect of AI-0318 Returning [limited] objects without copying. Maybe it shouldn't be, but I see nothing to prevent it. Personally I don't see any harm to it. You can do the same sort of thing today, but having an array of access values that designate tasks or limited objects containing tasks. The magic that comes from AI-318 is initializing objects in-place. So you could have a function that returned (in-place) task objects, and a (limited) array that had several function calls as its initial value. -- Robert I. Eachus "The terrorists rejoice in the killing of the innocent, and have promised similar violence against Americans, against all free peoples, and against any Muslims who reject their ideology of murder. Their barbarism cannot be appeased, and their hatred cannot be satisfied. There's only one way to deal with terror: We must confront the enemy and stay on the offensive until these killers are defeated." -- George W. Bush