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,407c890f49bff7e2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-25 00:25:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!wn2feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail From: Caffeine Junky Subject: Re: A little help on Generics. 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: "SteveD" Message-ID: NNTP-Posting-Host: 12.245.48.122 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc52.ops.asp.att.net 1024989927 12.245.48.122 (Tue, 25 Jun 2002 07:25:27 GMT) NNTP-Posting-Date: Tue, 25 Jun 2002 07:25:27 GMT Organization: AT&T Broadband Date: Tue, 25 Jun 2002 07:25:27 GMT Xref: archiver1.google.com comp.lang.ada:26692 Date: 2002-06-25T07:25:27+00:00 List-Id: On Mon, 24 Jun 2002 22:52:31 -0400, SteveD wrote: > To create an instance of the package: > >> generic >> Max : Positive; >> type Item is private; >> package genstack is > > Use: > package Int_Stack is new genstack(Max => 500, Item => Integer); > > Not: > type Int_Stack is new genstack(Max => 500, Item => Integer); > > Then you can use Int_Stack just a if it were a non-generic package. > > You're close. You are very very close. > > SteveD I got it to work, more or less. The package instantiated just fine. And the output also revealed some errors in my code.(Very embarassing errors at that.) I'll go over the code again, correct it, and post it up for scrutiny. Thanks. I really appreciate it. And, thanks for being patient. Heh. Staple