comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Legit Warnings or not
Date: Sat, 23 Jul 2011 10:32:41 -0400
Date: 2011-07-23T10:32:41-04:00	[thread overview]
Message-ID: <wccipqtawza.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: j0d52c$qq2$1@munin.nbi.dk

"Randy Brukardt" <randy@rrsoftware.com> writes:

> This is the only approach that works for Ada (at least as far as I can 
> tell). And it already works for Janus/Ada; we've used it as long as we've 
> have discriminanted components (late 1980s).
>
> ...
>> I think that Ada should not try to support this stuff.
>
> Ada *does* support this stuff. As Adam noted, there are rules preventing the 
> creation of accesses/renames of/into components that might change size. 

Right, but those rules are necessary for the allocate-the-max
implementation, too -- otherwise you can have dangling pointers.
So I don't think the existence of these rules gives us any clue
as to what was the intent of the original designers.

> There also are rules supporting allocation/deallocation of objects that have 
> multiple parts. So far as I know, those are the only rules needed to do so.
>
> And, as noted, Janus/Ada always has worked this way. I originally thought 
> Ada compilers were expected to work this way, 

You may be right about that.  I wonder if there's anything in the Ada 83
Rationale that would tell us.

(On another topic, it's pretty clear to me that the original designers
thought garbage collection should and would be supported.)

>...because there is no good 
> reason not to support this as the default (as noted, some target 
> environments might not want such objects, and pragma Restrictions can surely 
> be used to prevent them from being generated). But apparently, implementers 
> are lazy enough to avoid it, and customers have never pushed hard enough to 
> get it added as an option.

I don't think it was laziness.  It was an honest belief that implicit
heap allocation is evil.

- Bob



  parent reply	other threads:[~2011-07-23 14:32 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 22:30 Legit Warnings or not Anh Vo
2011-07-20 23:16 ` Robert A Duff
2011-07-21 18:43   ` Anh Vo
2011-07-23  0:26   ` Randy Brukardt
2011-07-23 14:26     ` Robert A Duff
2011-07-21  2:37 ` Jeffrey Carter
2011-07-21  9:50   ` Brian Drummond
2011-07-21 14:39     ` Dmitry A. Kazakov
2011-07-23  0:36       ` Randy Brukardt
2011-07-23  9:03         ` Dmitry A. Kazakov
2011-07-23 11:07           ` Simon Wright
2011-07-23 11:21             ` Dmitry A. Kazakov
2011-07-26 21:25           ` Randy Brukardt
2011-07-27  7:45             ` Dmitry A. Kazakov
2011-07-28  0:37               ` Randy Brukardt
2011-07-28  9:22                 ` Dmitry A. Kazakov
2011-07-28 14:22                   ` Robert A Duff
2011-07-28 14:41                     ` Dmitry A. Kazakov
2011-07-28 15:10                       ` Robert A Duff
2011-07-28 17:05                         ` Dmitry A. Kazakov
2011-07-28 23:32                           ` Randy Brukardt
2011-07-28 23:48                   ` Randy Brukardt
2011-07-29  6:57                     ` Simon Wright
2011-07-29 18:56                       ` Jeffrey Carter
2011-07-30  0:13                       ` Randy Brukardt
2011-07-29  7:41                     ` Dmitry A. Kazakov
2011-07-30  0:17                       ` Randy Brukardt
2011-07-30  8:27                         ` Dmitry A. Kazakov
2011-08-01 22:12                           ` Randy Brukardt
2011-08-02 10:01                             ` Dmitry A. Kazakov
2011-08-02 21:30                               ` Randy Brukardt
2011-08-03  9:01                                 ` Dmitry A. Kazakov
2011-08-03 20:35                                   ` Randy Brukardt
2011-08-04  8:11                                     ` Dmitry A. Kazakov
2011-08-05 23:57                                       ` Randy Brukardt
2011-08-06  8:23                                         ` Dmitry A. Kazakov
2011-08-08 21:30                                           ` Randy Brukardt
2011-07-23 14:32         ` Robert A Duff [this message]
2011-07-26 21:32           ` Randy Brukardt
2011-07-21 15:28     ` Adam Beneschan
2011-07-21 15:41       ` Robert A Duff
2011-07-21 20:12         ` Adam Beneschan
2011-07-23  0:31           ` Randy Brukardt
2011-07-21 17:40     ` Jeffrey Carter
2011-07-21 21:30       ` Brian Drummond
2011-07-21 21:54         ` Adam Beneschan
2011-07-22 10:16           ` Brian Drummond
2011-07-22 14:54             ` Adam Beneschan
2011-07-23  0:46             ` Randy Brukardt
2011-07-23  0:42         ` Randy Brukardt
2011-07-23  9:20           ` Niklas Holsti
2011-08-04  5:56             ` David Thompson
2011-07-23  9:24           ` Dmitry A. Kazakov
2011-07-23 12:36           ` Brian Drummond
2011-07-21 15:13   ` Robert A Duff
2011-07-23  0:52     ` Randy Brukardt
2011-07-23 14:48       ` Robert A Duff
2011-07-21 14:17 ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox