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-Thread: 103376,d89b829a7e0c6c44 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: GNAT-2005 References: <1163141479.498169.10580@b28g2000cwb.googlegroups.com> From: Stephen Leake Date: Fri, 10 Nov 2006 08:37:07 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:Yz41zsLriHb87cjUSM/Fww74X9g= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: d5ec645548088759e00d419154 Xref: g2news2.google.com comp.lang.ada:7399 Date: 2006-11-10T08:37:07-05:00 List-Id: "rashmi" writes: > I have a problem with trying to understand GNAT's working for the > following: > > 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. Without seeing the body, it's impossible to say. Most likely the bodies of the "scalar functions" are present in the package body _before_ the places they are called. -- -- Stephe