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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bc34e14e4555720 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-05 05:23:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!news-nue1.dfn.de!newsfeed.r-kom.de!newsfeed.stueberl.de!newsfeed.vmunix.org!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: This is a simple question Date: Fri, 05 Oct 2001 14:29:37 +0200 Organization: Enyo's not your organization Message-ID: <87zo762rta.fsf@deneb.enyo.de> References: <9pk4t7$tbm$1@trog.dera.gov.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:13774 Date: 2001-10-05T14:29:37+02:00 List-Id: "Stephen Cole" writes: > 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? The usual library unit name translation rules apply. The declarations gets the '.ads' suffix, and the completion (if necessary) the '.adb' suffix. (If you are not sure, you can put your source code into an arbitrary file and process it with gnatchop.) > Do I have to create a separate Specification file for each > procedure/function declaration? This depends on the compiler flags. It is generally a good idea to supply these declarations. > But I have tried this with GNAT and both approaches work! This seems to be a defect in GNAT.