Only one end of a stack is dynamic, the oldest item is the last removed.



I told Messrs. Roberts and Voigt:
“ If, for some --> really <-- odd reason,
your stack is huge and C.P.U. intensive, just give it its own heap;
so it's dynamic and you never have to move it. ”.

And you ( Mr. Voigt ) insulted me and replied:
“ But you will have to move it, because
if you add to the end and remove from the beginning... ”.

Huh ?
Only one end of a stack is dynamic, the oldest item is the last removed.

So far, Mr. Voigt, all I recall about you is:

1. You needlessly spam us with quotes.
( i.e. either you're lazy and/or you can't see the thread )

2. You don't know what a stack is.

3. You imagine that link-lists are still a good idea, in 2007.
( Ever hear of a Memory Management Unit ? )

Even in the case of large, dynamic, C.P.U.-intensive queues,
a dynamic array of pointers and dedicated, destroyable heaps
would be better than a linked list
( and/or C++'s automatic garbage collection ).

.



Relevant Pages

  • Re: Groovy (war Re: [PROST]Re: CDC Plugin fuer Eclipse)
    ... Warum müsste man continuations erlauben Stackvariablen in den Heap zu verschieben? ... Ein activation record speichert die Parameter und lokalen Variablen der Funktion und eine Information, ... Da diese activation records klassischerweise auf einem Stack verwaltet werden, kann man hier Stackspace sparen - Endrekursion ist damit genauso effizient wie eine klassische Iteration mit einem Sprung. ...
    (de.comp.lang.java)
  • Re: Stack, Heap, Mfc
    ... >> is put on the heap. ... >> decendant does this not mean that all memory will be on the heap because ... > stack or the heap. ... You first try to limit the recursion to an acceptable ...
    (microsoft.public.vc.mfc)
  • Re: Please Explain where will the struct be stored if it is declared inside the Class
    ... forget about structs for a second. ... can be stored either on the stack, or on the heap. ... First, think about the stack. ... A struct would act exactly the same as any of these decimals and ints. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is MSDN wrong? or I made a mistake? about static member function
    ... the heap" or some such reference. ... shouldn't we have a uniform notation? ... You can tell a heap object from a stack object by ... the result of trying to build a compiler on a tiny computer by someone who wasn't a very ...
    (microsoft.public.vc.mfc)
  • Re: Interview Questions
    ... This depends on the platform and maybe the Operating System. ... implementation to have a stack or heap. ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (comp.lang.cpp)