comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Dynamic allocation of unconstrained types
Date: Wed, 30 Sep 2009 12:15:22 -0700 (PDT)
Date: 2009-09-30T12:15:22-07:00	[thread overview]
Message-ID: <1bfc6b21-d82f-4005-9215-caaa88dc63dc@x6g2000prc.googlegroups.com> (raw)
In-Reply-To: ha07hj$2eg$1@news.tornevall.net

On Sep 30, 11:30 am, "Jeffrey R. Carter"
<spam.jrcarter....@spam.acm.org> wrote:
> Adam Beneschan wrote:
>
> > (functions returning limited types weren't allowed in Ada 95)
>
> Yes, they were.

Oh, yeah, that's right---the return-by-reference thing.  I forgot
about that because they were really more like functions that return an
access to some existing object, rather than functions returning an
object.  You couldn't create a new limited object and return it.
Anyway, that doesn't really affect my point: the compiler's
implementation of functions returning limited types is pretty much all
new for Ada 2005, and this appears to be a case that slipped through
the cracks in GNAT.

                                   -- Adam



  reply	other threads:[~2009-09-30 19:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-30 14:29 Dynamic allocation of unconstrained types Maciej Sobczak
2009-09-30 14:50 ` Robert A Duff
2009-09-30 14:54 ` Adam Beneschan
2009-09-30 18:30   ` Jeffrey R. Carter
2009-09-30 19:15     ` Adam Beneschan [this message]
2009-09-30 14:56 ` Dmitry A. Kazakov
2009-09-30 15:03   ` Adam Beneschan
replies disabled

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