comp.lang.ada
 help / color / mirror / Atom feed
From: gauthier@unilim.fr (Michel Gauthier)
Subject: Re: Comments on generic stack?
Date: 1996/03/15
Date: 1996-03-15T00:00:00+00:00	[thread overview]
Message-ID: <gauthier-1503961110320001@164.81.60.62> (raw)
In-Reply-To: 4i6l2t$j1q@dmsoproto.ida.org

In article <4i6l2t$j1q@dmsoproto.ida.org>, wheeler@aphrodite.csed.ida.org
(David Wheeler) wrote:

>> [...]
>>  
>>  Below is yes, yet another implementation of an unbounded stack. This one
>>  supports assignment (:=), equality (=), and finalizes correctly, as
>>  well as supporting the tried and true Pop and Push operations.
>>  It's a generic that requires the Item to have := and =, but since the
>>  stack itself has those operations it is composable (you can have a
>>  Stack of Stacks of Integers).

Sorry to disturb, but I cannot understand what is a stack of stacks.

Stacks are designed to organise values, not objects. 
Stacks are objects, not values.
How can you define stacks of stacks ?

David probably means either stacks of (item=>references to stacks) or stacks of
(item=> some implementation of the stack abstract type with an initial algebra
behaviour). The latter actual type is an academic feature that has strictly no 
practical use.

----------          ----------          ----------          ---------- 
Michel Gauthier / Laboratoire d'informatique
123 avenue Albert Thomas / F-87060 Limoges
telephone +33 () 55457335 [or ~ 7232]
fax +33 ()  55457315  [or ~7201]
----------          ----------          ----------          ----------
La grande equation de la fin du siecle : windows-X = Mac-Y
The main end-of-century equation : windows-X = Mac-Y
----------          ----------          ----------          ----------
Si l'an 2000 est pour vous un mysticisme stupide, utilisez la base 9
If you feel year 2000 a stupid mystic craze, use numeration base 9
----------          ----------          ----------          ----------




       reply	other threads:[~1996-03-15  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4i6l2t$j1q@dmsoproto.ida.org>
1996-03-15  0:00 ` Michel Gauthier [this message]
1996-03-17  0:00   ` Comments on generic stack? David Wheeler
1996-03-20  0:00   ` "Object" types vs. "Value" types John G. Volan
1996-03-20  0:00     ` John DiCamillo
1996-03-21  0:00       ` Comments on generic stack? John G. Volan
1996-03-21  0:00     ` "Object" types vs. "Value" types david scott gibson
1996-03-25  0:00       ` John G. Volan
1996-03-28  0:00         ` david scott gibson
     [not found] <199603141053.LAA21095@email.enst.fr>
1996-03-17  0:00 ` Comments on generic stack? David Wheeler
replies disabled

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