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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bc34e14e4555720,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-05 04:19:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!diablo.dera.gov.uk!dera!not-for-mail From: "Stephen Cole" Newsgroups: comp.lang.ada Subject: This is a simple question Date: Fri, 5 Oct 2001 12:23:53 +0100 Organization: Defence Evaluation & Research Agency Message-ID: <9pk4t7$tbm$1@trog.dera.gov.uk> NNTP-Posting-Host: 146.80.10.150 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:13772 Date: 2001-10-05T12:23:53+01:00 List-Id: I am learning Ada from John Barnes book, Programming in Ada95, 2nd Edition. Everything I've read that has confused me I've tried out using GNAT compiler 3.13p and then I understood. However, I have two questions. 1) If I want to make some child functions/procedures (which I understand is allowable) rather than a child package, how do I name the file in order to feed it into GNAT? Do I have to create a separate Specification file for each procedure/function declaration? And then a separate Body file for each specified function/procedure?? 2) On page 252 of the book (towards the bottom of the page) he points out that - with P1.P2; use P1; use P2; -- illegal But with P1.P2; use P1; use P1.P2; -- legal But I have tried this with GNAT and both approaches work! Am I miinterpreting what he is trying to say?? Thanks