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 10:52:15 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: This is a simple question X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3BBDF1CF.F8C7C4E2@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <9pk4t7$tbm$1@trog.dera.gov.uk> Mime-Version: 1.0 Date: Fri, 5 Oct 2001 17:45:51 GMT X-Mailer: Mozilla 4.5 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:13807 Date: 2001-10-05T17:45:51+00:00 List-Id: Stephen Cole wrote: > > 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?? Every major construct in Ada has a specification and body. This is true for packages, subprograms, protected units, and tasks. Packages and subprograms may also be library units. A special case allows a subprogram body to serve as its own specification, so you could create only a body for a child subprogram. However, for library units it is probably best to have an explicit specification for every library unit. The GNAT default naming rules use .ads for specification and .adb for bodies and subunits. -- Jeffrey Carter