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,d3b3a6fb3be6d395 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-25 10:54:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail From: Stapler Subject: Re: A tiny little integer stack package from a novice. Newsgroups: comp.lang.ada References: <1ec946d1.0211250931.341c1a32@posting.google.com> User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Matthew Heaney" Message-ID: NNTP-Posting-Host: 12.241.145.39 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1038250475 12.241.145.39 (Mon, 25 Nov 2002 18:54:35 GMT) NNTP-Posting-Date: Mon, 25 Nov 2002 18:54:35 GMT Organization: AT&T Broadband Date: Mon, 25 Nov 2002 18:54:35 GMT Xref: archiver1.google.com comp.lang.ada:31215 Date: 2002-11-25T18:54:35+00:00 List-Id: On Mon, 25 Nov 2002 12:31:57 -0500, Matthew Heaney wrote: > > Why is this a generic package? Why isn't this an abstract data type? Good question. Good point. As I said, I'm a real newb, so I hadn't really considered using an abstract data type. That makes sense. > If the stack has a fixed, maximum size, it's easier to simply declare it > as a discriminated record, which avoids all the headaches associated > with memory allocation. For example: > Good thinking. I'm reworking the package as per your advice and that of Mr. Grein in an earlier post. It's gonna look so much better. Stapler