comp.lang.ada
 help / color / mirror / Atom feed
From: Stapler <spam.magnet@yahoo.com>
Subject: Re: A tiny little integer stack package from a novice.
Date: Mon, 25 Nov 2002 18:54:35 GMT
Date: 2002-11-25T18:54:35+00:00	[thread overview]
Message-ID: <LluE9.112295$P31.56575@rwcrnsc53> (raw)
In-Reply-To: 1ec946d1.0211250931.341c1a32@posting.google.com

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



  reply	other threads:[~2002-11-25 18:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25  7:19 A tiny little integer stack package from a novice Stapler
2002-11-25 17:31 ` Matthew Heaney
2002-11-25 18:54   ` Stapler [this message]
2002-11-25 19:21 ` Jeffrey Carter
2002-11-25 21:40   ` tmoran
  -- strict thread matches above, loose matches on Subject: below --
2002-11-25  7:33 Grein, Christoph
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox