Re: Question about circular elaboration order error (GNAT).
by Robert A Duff <bobduff@[EMAIL PROTECTED]
>
Apr 14, 2008 at 01:52 PM
"Jeffrey R. Carter" <spam.jrcarter.not@[EMAIL PROTECTED]
> 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