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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Initializing an array of tasks with discrimants Date: Mon, 25 Nov 2019 16:36:56 -0600 Organization: JSA Research & Innovation Message-ID: References: <358a3934-7cb2-4cff-8703-71410815f27e@googlegroups.com> <371cb59c-1814-4953-9652-43c9986808a1@googlegroups.com> Injection-Date: Mon, 25 Nov 2019 22:36:57 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="13311"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:57608 Date: 2019-11-25T16:36:56-06:00 List-Id: "Jere" wrote in message news:371cb59c-1814-4953-9652-43c9986808a1@googlegroups.com... ... > I still think Ada should support aggregates for Tasks > with discriminants in some form. I'm hoping the 2020 > change mentioned earlier will help with that (though I > never identified how when reading over it...I'll spend > some more time looking for it). We tried defining aggregates for all types in Ada 2005, but there were a number of semantic issues that prevented it from working out. One of them was with tasks, but I don't recall the details. I do think it could have been worked out, but the model was getting very complex and that can be an issue itself. As previously noted by Bob, user-defined aggregates could probably be used to provide this capabillity for a particular task type. They can be applied to any non-array type, so one could use them to define an aggregate for for a task type. Probably would take some imagination, though, since the pattern for them is array aggregates (not records). Randy.