comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com
Subject: Re: Ada.Exceptions could be 'pragma Preelaborate' ?
Date: 1998/10/31
Date: 1998-10-31T00:00:00+00:00	[thread overview]
Message-ID: <71fol7$r63$1@nnrp1.dejanews.com> (raw)
In-Reply-To: wccn26dvfgi.fsf@world.std.com

In article <wccn26dvfgi.fsf@world.std.com>,
  Robert A Duff <bobduff@world.std.com> wrote:
> Stephen Leake <Stephen.Leake@gsfc.nasa.gov> writes:
>
> > Currently, Ada.Exceptions has no elaboration pragma, and thus any unit
> > that 'withs' Ada.Exceptions cannot have 'pragma Preelaborate'. This is
> > a pain; I'm building a nice library, everything is either Pure or
> > Preelaborate, but then I start adding nice error messages to my
> > exceptions, and I have to get rid of the pragmas. I started replacing
> > Preelaborate with Elaborate_Body, and got some circular elaboration
> > problems.
>
> Yeah, that's a problem.  Similarly, if you want to put debugging
> print-outs into a pragma-Pure package, you can't.


A little note for GNAT users:

The I/O package GNAT.IO is preelaborable. This is a convenient subset of
Text_IO features, perfectly adequate for debugging use.

Robert Dewar
Ada Core Technologies

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1998-10-31  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-30  0:00 Ada.Exceptions could be 'pragma Preelaborate' ? Stephen Leake
1998-10-30  0:00 ` Robert A Duff
1998-10-31  0:00   ` dewar [this message]
1998-11-04  0:00   ` Michel Gauthier
1998-11-04  0:00     ` dewar
1998-10-30  0:00 ` Tucker Taft
replies disabled

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