comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Enumeration_IO
Date: 2000/04/07
Date: 2000-04-07T00:00:00+00:00	[thread overview]
Message-ID: <8ckel2$950$1@nnrp1.deja.com> (raw)
In-Reply-To: 38ED2AC4.A7B9147B@acm.org

In article <38ED2AC4.A7B9147B@acm.org>,
  jrcarter@acm.org wrote:

> Enumeration_IO is in Ada.Text_IO;

Yes, that's right

> look for a-textio.ad?

But that interestingly is wrong, internally GNAT handles
Enumeration_IO as a child unit. This has the advantage that
it is only loaded if needed.

Of course if Ada 95 had been designed from scratch then of
course Enumeration_IO would be a child unit, but we had to
be compatible with Ada 83, so we could not do this.

GNAT has some interesting internal circuits to implement
these subpackages of Text_IO as child packages, while preserving
the unfortunate subpackage semantics of the Ada 83 (and hence
Ada 95) definitions.

So the file to look in for this stuff is

a-tienio.ad? (Ada.Text_IO.Enumeration_IO)

Examine the compiler sources for more information on the
internal handling of this interesting transformation.


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-04-07  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-06  0:00 Enumeration_IO NANCY HEHIR
2000-04-07  0:00 ` Enumeration_IO Jeff Carter
2000-04-07  0:00   ` Robert Dewar [this message]
2000-04-08  0:00     ` Enumeration_IO Jeff Carter
  -- strict thread matches above, loose matches on Subject: below --
1990-05-08 17:54 Enumeration_IO dritz
1990-05-08  0:41 Enumeration_IO Mike Feldman
1990-05-08 16:38 ` Enumeration_IO Alex Blakemore
1990-05-08 18:32   ` Enumeration_IO Mike Feldman
1990-05-09 22:36     ` Enumeration_IO M Y Ben Gershon
1990-05-10  3:01       ` Enumeration_IO Mike Feldman
1990-05-08 23:53 ` Enumeration_IO M Y Ben Gershon
replies disabled

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