Don't use arrays as stacks

Nick Sabalausky a at a.a
Wed Sep 28 12:44:06 PDT 2011


"Steven Schveighoffer" <schveiguy at yahoo.com> wrote in message 
news:op.v2i2yv0beav7ka at localhost.localdomain...
> On Wed, 28 Sep 2011 12:11:29 -0400, Nick Sabalausky <a at a.a> wrote:
>
>> Of course, as it is now, the slice owner won't even know if
>> the values it points to have been pooped off and *not* been pushed back 
>> on
>> again.
>
> Freudian slip or simple typo?  Either way, *hilarious*  :)

lmao. And it's surprisingly appropriate for the context.

> Gives a new  mental picture for a stack...

Yea, and properly "upside-down" just like our trees. Although I'm not I like 
the implications that has for "push"...I guess that means the analogy would 
be better suited for a FIFO.




More information about the Digitalmars-d mailing list