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: 103376,9fb8e2af320d5b3e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Bus error Date: Wed, 27 Jun 2007 21:58:49 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1182954233.788124.17920@c77g2000hse.googlegroups.com> <1182959120.13096.8.camel@kartoffel> <1182964748.689146.52490@c77g2000hse.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1182995929 878 192.74.137.71 (28 Jun 2007 01:58:49 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 28 Jun 2007 01:58:49 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:xQoSZRMDWPoREerjeZkfwL5IMYI= Xref: g2news1.google.com comp.lang.ada:16327 Date: 2007-06-27T21:58:49-04:00 List-Id: Maciej Sobczak writes: > On 27 Cze, 17:45, Georg Bauhaus > wrote: >> Procedure Make should be fine as the object returned is to be >> built in place. (As per Bob Duff's "gems" on limited aggregates >> and other sources.) Thanks for mentioning the "gems", Georg. > Except that those gems don't tell much about extension aggregates and > even less about limited controlled. There are a few more gems on this subject in the pipeline -- stay tuned. http://www.adacore.com/category/developers-center/gems > BTW - is it necessary to reveal in the public view that the type is > tagged? No. You can have an untagged private type whose full type is tagged. That means that clients cannot extend the type, but child packages can. >... It is tagged only so that it can be controlled and since this > is implementation detail, > it should be private together with the extension. Right. > I cannot check it, because this time I get the explicit "GNAT BUG > DETECTED". ...which requests that you send a bug report. If you're not a supported customer of AdaCore, and you send a bug report, it will eventually get fixed (but it's lower priority than paying customers). > Ideally, the public view should look like this: > > type T (<>) is limited private; > > With the private view unchanged. Is it possible? (assuming good > compiler) Yes, that's possible. Assuming a bug-free compiler, of course. ;-). As to your original question, about an extension aggregate: I don't see anything wrong with your code, and I do recall fixing a bug in that area (extension aggregate of limited type with controlled parts returned from build-in-place function) a month or so ago. The bug fix will eventually find its way into the public version of GNAT. - Bob