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,407c890f49bff7e2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-24 19:52:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail From: "SteveD" Newsgroups: comp.lang.ada References: Subject: Re: A little help on Generics. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 12.225.227.101 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc52.ops.asp.att.net 1024973551 12.225.227.101 (Tue, 25 Jun 2002 02:52:31 GMT) NNTP-Posting-Date: Tue, 25 Jun 2002 02:52:31 GMT Organization: AT&T Broadband Date: Tue, 25 Jun 2002 02:52:31 GMT Xref: archiver1.google.com comp.lang.ada:26681 Date: 2002-06-25T02:52:31+00:00 List-Id: 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