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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5072448cfe6241eb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-14 03:46:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn4feed!wn3feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: Caffeine Junky Subject: Re: How does this look? Newsgroups: comp.lang.ada References: User-Agent: Pan/0.11.3 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "tmoran" Message-ID: <_DcY8.524447$cQ3.46097@sccrnsc01> NNTP-Posting-Host: 12.245.48.122 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1026643578 12.245.48.122 (Sun, 14 Jul 2002 10:46:18 GMT) NNTP-Posting-Date: Sun, 14 Jul 2002 10:46:18 GMT Organization: AT&T Broadband Date: Sun, 14 Jul 2002 10:46:18 GMT Xref: archiver1.google.com comp.lang.ada:27081 Date: 2002-07-14T10:46:18+00:00 List-Id: On Sun, 14 Jul 2002 03:09:00 -0400, tmoran wrote: >> > You might first ask your compiler. >> >> It compiled into an object file without any errors. Guess I'm >> overlooking something. > > I suspect you didn't try a little dummy program that instantiates > safer_genstack. Some compilers wait till you try to instantiate before > they complain about > for Stack'Storage_Size use Cell'Max_Size_In_Storage_Elements * > Max; > appearing too late. Hmmm....you do make a good point. I tried S'Size := Cell'Max_Size_in_Storage_Elements * Max; in the body of the package and I get this... S'Size := Cell'Max_Size_in_Storage_Elements * Max; | >>>Declaration Expected which seems pretty redundant as S is already declared in the spec file. You know, I didnt have much trouble with other segments of Ada(so far), but Storage Pools are really starting chaffe my ass. It seems like I could re-declare the same variable a dozen times in each of a dozen different packages of a program, and the compiler would still keep asking me to re-declare it. S WAS ALREADY DECLARED! The only thing I can chalk it up to is a bug in the compiler, either it's giving false errors or the error message needs to be re-written to make sense. Please be patient, I'm a little tired and cranky after going over this for the 137th time. Anyways, thanks. St4pL3