From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f9ea26c96469c91 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Enumeration_IO Date: 2000/04/07 Message-ID: <8ckel2$950$1@nnrp1.deja.com>#1/1 X-Deja-AN: 607846640 References: <38ED2AC4.A7B9147B@acm.org> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Apr 07 10:52:21 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-07T00:00:00+00:00 List-Id: 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.