From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Task components, the rationale
Date: Fri, 22 Jul 2011 18:28:16 -0500
Date: 2011-07-22T18:28:16-05:00 [thread overview]
Message-ID: <j0d12i$mav$1@munin.nbi.dk> (raw)
In-Reply-To: a30f4a5d-baee-40b5-b30d-2a15042868e7@r9g2000yql.googlegroups.com
"Maciej Sobczak" <see.my.homepage@gmail.com> wrote in message
news:a30f4a5d-baee-40b5-b30d-2a15042868e7@r9g2000yql.googlegroups.com...
...
>If you ask me from the top of my head how *exactly* this can be
>solved, I will not attempt to give a full solution (hey, the committee
>has a full decade for it ;-) ),
Well, actually, work on Ada 2020 would need to be finished by late 2018 in
order to have a good chance of being standardized in 2020. Since it is
mid-2011 now, I think that is more like 7 years than 10.
...
> but one of the possible ideas might
>involve adding a lifetime information to the access discriminant, just
>as it is done for tracking scopes of types and objects with anonymous
>access parameters today.
That was suggested for Ada 2012 [by me and others], and it turns out that it
cannot be done (at least with the sorts of lifetime indications that Ada has
used to date). If it was mandated, it would necessarily make Ada
implementations far more expensive than they currently are -- so I doubt
very much that we'll see that. (Sorry, I don't remember which AI we were
discussing at the time, so I can't give you a reference.)
The static accessibility model for access discriminants is *very*
problematical; it leads to distributed overhead for functions that might
return something with a discriminant -- yet that still is considered
preferable to any dynamic model. My preference is to not use them at all
(not always possible, as shown by some of these examples).
Randy.
Randy.
next prev parent reply other threads:[~2011-07-22 23:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-13 18:52 Task components, the rationale Dmitry A. Kazakov
2011-07-13 20:58 ` Maciej Sobczak
2011-07-14 8:52 ` Georg Bauhaus
2011-07-14 18:15 ` Maciej Sobczak
2011-07-22 23:28 ` Randy Brukardt [this message]
2011-07-14 9:23 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox