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,b9718fc889b868b7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-07 05:43:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Message-ID: <3C6284CA.8987D330@NOSPAMcompaq.com> From: Charlie McCutcheon X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: DEC Ada and packages References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 07 Feb 2002 08:44:42 -0500 NNTP-Posting-Host: 16.28.160.29 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1013089406 16.28.160.29 (Thu, 07 Feb 2002 05:43:26 PST) NNTP-Posting-Date: Thu, 07 Feb 2002 05:43:26 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.lang.ada:19700 Date: 2002-02-07T08:44:42-05:00 List-Id: > reading through the DEC Ada manuals and can't find anything. The DEC Ada Language Reference Manaual (LRM) is based on the Ada 83 language standard. The original standard's text was taken, and words were added for Digital specific information (in blue/grey print, depending on your copy of the manual). You'd probably prefer a tutorial - this is instead a reference manual. Note if you look for a better tutorial manual that DEC/Compaq Ada is Ada 83, not Ada 95 (95 is the latest Ada language standard - you'd see many new featues which aren't in Compaq Ada). > %ADAC-E-CL_SPENOTFOU, (1) Specification for Powers not found in library As pointed out in another reply, you're missing a package specification. This is an Ada requirement, and is not specific to Compaq Ada. The Ada language standard requires that packages have specifications, and optionally package bodies. The package specification is the global declaration which tells other programers how to interface to your objects in the package which can be hidden away from view in the package body. > Then call it from another file with a Proceedure. Note that Compaq Ada compiles programs in files into compilaiton units in the program library. This is terminology, but the files where you write the code aren't as significant as the compilation unit. You can write code for procedures X, Y, Z and put them in file A.TXT and compile them. We suggest putting them in their own files, such as X.ADA, Y.ADA, Z.ADA, but you don't have to. Other compilers, such as GNAT Pro require specific naming conventions of files depending on the compilation units within (ie procedure X must be in file X.ADB, ....). Sorry for the lecture, but you appear to be new to Ada... Been a long time since I've explained any of this... 8-) Charlie Compaq Ada