comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Question about circular elaboration order error (GNAT).
Date: Mon, 14 Apr 2008 13:52:59 -0400
Date: 2008-04-14T13:52:59-04:00	[thread overview]
Message-ID: <wcclk3g8gsk.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: NzMMj.66778$TT4.52860@attbi_s22

"Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org> writes:

> Peter C. Chapin wrote:
>> package Parent is
>>    -- Needed so this package requires/allows a body.
>>    procedure Dummy;
>> end Parent;
>
> Not related to your question, but perhaps of interest to you: Dummy is
> not needed so the pkg allows a body. Pragma Elaborate_Body is a better
> way to achieve that:

It's better in many cases, but in this particular case,
it would make the program illegal.  ;-)

> package Parent is
>    pragma Elaborate_Body;
> end Parent;

- Bob



      reply	other threads:[~2008-04-14 17:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13 18:12 Question about circular elaboration order error (GNAT) Peter C. Chapin
2008-04-13 19:43 ` Samuel Tardieu
2008-04-13 20:20   ` Robert A Duff
2008-04-13 21:20     ` Samuel Tardieu
2008-04-14 20:21       ` Robert A Duff
2008-04-14 23:36         ` Adam Beneschan
2008-04-15  7:13           ` Georg Bauhaus
2008-04-13 19:46 ` Robert A Duff
2008-04-13 22:49   ` Peter C. Chapin
2008-04-14 13:56     ` Robert A Duff
2008-04-14 17:33 ` Jeffrey R. Carter
2008-04-14 17:52   ` Robert A Duff [this message]
replies disabled

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