comp.lang.ada
 help / color / mirror / Atom feed
From: stt@ada-uts
Subject: Re: Can CALENDAR.CLOCK be called during
Date: Wed, 14-May-86 11:18:00 EDT	[thread overview]
Date: Wed May 14 11:18:00 1986
Message-ID: <4700028@ada-uts> (raw)
In-Reply-To: 247@anasazi.UUCP


You have run into the basic flaw with Pragma ELABORATE.
Its usefulness is severely limited given its current
semantics.  It would be much more useful
if a pragma ELABORATE of a unit implied a pragma ELABORATE
of all of the units its body "with"s.  Ada '88?

Nevertheless, most compilers implement "friendly"
elaboration order so you won't necessarily run
into the problems.  It turns out that the ACVC's
made the same assumption, that pragma elaborating
package Report was sufficient to avoid PROGRAM_ERROR.
In fact, Report "with"s Text-IO, so it is quite possible
that a call on Report during elaboration will die
somewhere in Text-IO with PROGRAM_ERROR.

The newest ACVC suite includes a pragma ELABORATE(Text_IO);
on the report package body.

  reply	other threads:[~1986-05-14 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-05-08  4:09 Can CALENDAR.CLOCK be called during initialization? Steve Villee
1986-05-14 15:18 ` stt [this message]
1986-05-15 13:10 ` Can CALENDAR.CLOCK be called during callen
replies disabled

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