Errors in TDPL

Jonathan M Davis jmdavisProg at gmail.com
Thu Jun 24 01:09:35 PDT 2010


Alix Pexton wrote:

> Can someone sanity check me on the code on pages 334-5?
> 
> Does the method push really need !empty in its in contract?
> 
> I might not be fully awake yet ><
> 
> A...

It has to be an error. If you couldn't push onto an empty stack, then you'd 
never be able to put anything on the stack.

- Jonathan M Davis


More information about the Digitalmars-d mailing list