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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d89b829a7e0c6c44,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail From: "rashmi" Newsgroups: comp.lang.ada Subject: GNAT-2005 Date: 9 Nov 2006 22:51:19 -0800 Organization: http://groups.google.com Message-ID: <1163141479.498169.10580@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: 59.144.49.229 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1163141484 7161 127.0.0.1 (10 Nov 2006 06:51:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 10 Nov 2006 06:51:24 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=59.144.49.229; posting-account=3DKkFw0AAACqdEmipLjcQnXXVUyr7_Eb Xref: g2news2.google.com comp.lang.ada:7393 Date: 2006-11-09T22:51:19-08:00 List-Id: Dear all, I have a problem with trying to understand GNAT's working for the following: ________________________________________________________________________________ package PKGE_NasRdFuns is function FUNC_ScBAVCk(RE_ScBA : in RE_SclrBA; RE_CtBA : in RE_CatgBA) return TF_Done; function FUNC_ScBAFCk(RE_ScBA : in RE_SclrBA; RE_CtBA : in RE_CatgBA) return TF_Done; -- function FUNC_ScP4VCk(RE_ScP4 : in RE_SclrP4; RE_CtP4 : in RE_CatgP4) return TF_Done; -- function FUNC_ScP4FCk(RE_ScP4 : in RE_SclrP4; RE_CtP4 : in RE_CatgP4) return TF_Done; function FUNC_BAFDIRd(IN_FL04,IN_FL05,IN_NDim : in Integer) return RE_BAFDIm; function FUNC_BAVCPRd(IN_VC02,IN_VC03 : in Integer) return RE_BAVCPo; function FUNC_BAVPLRd(IN_VC04,IN_VC05 : in Integer) return RE_BAVPLn; function FUNC_BAVMBRd(IN_VM02,IN_VM03 : in Integer) return RE_BAVMBr; function FUNC_BAFPLRd(IN_FF03,IN_FF04 : in Integer) return RE_BAFPLn; function FUNC_BAFORRd(IN_FL02,IN_FL03 : in Integer) return RE_BAFORn; end PKGE_NasRdFuns ; _____________________________________________________________________________ 1. Given above is an ada spec package (.ads) PKGE_NASRdFuns with specifications for many functions such as FUNC_ScBAVCk, FUNC_ScBAFCk, etc. 2. Parameters such as RE_ScBA are records defined in another package, while IN_VC02, IN_VC03 etc. are scalars. 3. I find that if I delete the first few lines that give specs for FUNC_ScBAVCK or FUNC_ScBAFCk, for which records are parameters, and then compile the package's body (.adb), GNAT does not report that functions are undefined. On the other hand, if I delete a specs line such as that for FUNC_BAVCPRd for which scalars are parameters, GNAT immediately reports "function FUNC_BAVCPRd undefined" when I compile the body. I want to understand why GNAT has such a strange response, that is, why it does not report "function undefined" for the former case. Thanks in advance. Rashmi.