From: Adam Beneschan <adam@irvine.com>
Subject: Re: Interresting difference in Normal-Returns/Expression-Functions and Extended-Returns.
Date: Tue, 23 Apr 2013 16:16:19 -0700 (PDT)
Date: 2013-04-23T16:16:19-07:00 [thread overview]
Message-ID: <d4f550bf-0f4d-4dd1-aa7c-f4ae92ecd227@googlegroups.com> (raw)
In-Reply-To: <b3c264c9-382e-40f6-a44a-6964f2c65a8d@googlegroups.com>
On Tuesday, April 23, 2013 4:00:20 PM UTC-7, Shark8 wrote:
> > > The moral: Whether or not you think anonymous access types are evil,
> > > anonymous access types to *tasks* definitely can have some surprising
> > > consequences (because of the task termination and dependency rules),
> > > and should be avoided.
>
> Yes; this was surprising. Though this brings up an interesting point: how would you be able to have an array of tasks that have a discriminant?
What I said applies to *anonymous* access types, not named access types. You can still get what you want by defining a named access type inside Experiment (or globally in another package); this won't have the same pitfall with task termination.
Ada does have a problem with arrays of tasks with discriminants; see http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai12s/ai12-0061-1.txt?rev=1.1 for a proposed solution, but I doubt that will be part of the language for some time.
-- Adam
next prev parent reply other threads:[~2013-04-23 23:16 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 18:27 Interresting difference in Normal-Returns/Expression-Functions and Extended-Returns Shark8
2013-04-22 19:13 ` Dmitry A. Kazakov
2013-04-22 20:11 ` Shark8
2013-04-23 6:15 ` Simon Wright
2013-04-23 7:35 ` Stephen Leake
2013-04-23 8:58 ` Dmitry A. Kazakov
2013-05-02 2:20 ` Randy Brukardt
2013-05-02 4:41 ` Shark8
2013-04-23 6:32 ` egilhh
2013-04-23 15:24 ` Adam Beneschan
2013-04-24 5:56 ` egilhh
2013-04-24 14:40 ` Adam Beneschan
2013-04-25 5:30 ` egilhh
2013-04-25 5:41 ` Shark8
2013-04-23 16:00 ` Adam Beneschan
2013-04-23 16:52 ` Simon Wright
2013-04-23 17:57 ` Adam Beneschan
2013-04-25 8:48 ` egilhh
2013-04-25 15:19 ` Adam Beneschan
2013-05-02 2:33 ` Randy Brukardt
2013-05-02 2:38 ` Randy Brukardt
2013-05-02 16:15 ` Adam Beneschan
2013-05-02 22:00 ` Randy Brukardt
2013-05-03 1:11 ` Adam Beneschan
2013-05-03 5:34 ` Simon Wright
2013-05-03 6:43 ` egilhh
2013-05-03 16:49 ` Adam Beneschan
2013-05-03 23:09 ` Randy Brukardt
2013-04-23 23:00 ` Shark8
2013-04-23 23:16 ` Adam Beneschan [this message]
2013-05-02 2:28 ` Randy Brukardt
2013-05-02 16:37 ` Adam Beneschan
2013-04-23 16:33 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox