Errors in TDPL
Alix Pexton
alix.DOT.pexton at gmail.DOT.com
Thu Jun 24 01:49:00 PDT 2010
On 24/06/2010 09:09, Jonathan M Davis wrote:
> 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
That's what I thought, but it's there in the example over the page as
well, so I though maybe I was missing something ><
A...
More information about the Digitalmars-d
mailing list