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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ba1efd580c7c1290 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!x6g2000prc.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Dynamic allocation of unconstrained types Date: Wed, 30 Sep 2009 12:15:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1bfc6b21-d82f-4005-9215-caaa88dc63dc@x6g2000prc.googlegroups.com> References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1254338122 23542 127.0.0.1 (30 Sep 2009 19:15:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 30 Sep 2009 19:15:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x6g2000prc.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8545 Date: 2009-09-30T12:15:22-07:00 List-Id: On Sep 30, 11:30=A0am, "Jeffrey R. Carter" 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