From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Bus error
Date: Wed, 27 Jun 2007 21:58:49 -0400
Date: 2007-06-27T21:58:49-04:00 [thread overview]
Message-ID: <wccy7i4algm.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1182964748.689146.52490@c77g2000hse.googlegroups.com
Maciej Sobczak <see.my.homepage@gmail.com> writes:
> On 27 Cze, 17:45, Georg Bauhaus <rm.tsoh+bauh...@maps.futureapps.de>
> 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
next prev parent reply other threads:[~2007-06-28 1:58 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 14:23 Bus error Maciej Sobczak
2007-06-27 15:45 ` Georg Bauhaus
2007-06-27 17:19 ` Maciej Sobczak
2007-06-28 1:58 ` Robert A Duff [this message]
2007-06-28 20:06 ` Maciej Sobczak
2007-06-28 21:19 ` Robert A Duff
2007-06-29 8:05 ` Maciej Sobczak
2007-06-29 9:42 ` Georg Bauhaus
2007-06-29 16:59 ` Adam Beneschan
2007-06-30 12:33 ` Georg Bauhaus
2007-06-30 2:02 ` Robert A Duff
2007-06-29 8:04 ` Dmitry A. Kazakov
2007-06-29 9:23 ` AW: " Grein, Christoph (Fa. ESG)
2007-06-29 10:17 ` Dmitry A. Kazakov
2007-06-27 20:02 ` Anh Vo
2007-06-27 20:48 ` Maciej Sobczak
2007-06-28 2:01 ` Robert A Duff
[not found] <0367891DA5DA7E408D42A860FA002F44B0CC48@sma2901.cr.eurocopter.corp>
2007-06-29 9:35 ` AW: " Duncan Sands
2007-06-29 12:55 ` Dmitry A. Kazakov
2007-06-29 15:37 ` Markus E Leypold
2007-06-29 15:44 ` Georg Bauhaus
2007-06-29 20:07 ` Dmitry A. Kazakov
2007-06-30 1:37 ` Robert A Duff
2007-06-30 8:44 ` Dmitry A. Kazakov
2007-06-30 11:52 ` Georg Bauhaus
2007-06-30 13:16 ` Georg Bauhaus
2007-06-30 14:31 ` Dmitry A. Kazakov
2007-06-30 18:07 ` Georg Bauhaus
2007-06-30 19:31 ` Robert A Duff
2007-07-01 9:07 ` Dmitry A. Kazakov
2007-06-30 15:40 ` Robert A Duff
2007-06-30 17:54 ` Georg Bauhaus
2007-07-02 8:01 ` Jean-Pierre Rosen
2007-07-02 12:00 ` Dmitry A. Kazakov
2007-07-02 12:30 ` Jean-Pierre Rosen
2007-07-02 14:22 ` Robert A Duff
2007-06-30 13:14 ` Georg Bauhaus
2007-06-30 14:31 ` Dmitry A. Kazakov
2007-06-30 15:34 ` Robert A Duff
2007-07-01 8:34 ` Dmitry A. Kazakov
2007-07-01 15:39 ` Robert A Duff
2007-07-01 19:41 ` Dmitry A. Kazakov
2007-06-30 15:29 ` Robert A Duff
2007-06-30 17:41 ` Georg Bauhaus
2007-06-30 13:31 ` Markus E Leypold
2007-07-02 0:16 ` Robert A Duff
-- strict thread matches above, loose matches on Subject: below --
1990-08-27 23:48 BUS ERROR J o s e D u a r t e ! ! !
1990-08-16 14:52 saharbaugh%roo.dnet
1990-08-13 21:11 J o s e D u a r t e !!!
1990-08-10 12:32 bus error saharbaugh%roo.dnet
1990-08-09 14:50 saharbaugh%roo.dnet
1990-08-10 21:38 ` Chuck Peterson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox