home .. forth .. misc mail list archive ..

Re: MuP21 stack under/overflow


On Sun, 11 Jun 1995, Barry Kauler wrote:

> tell me how the stack works -- I mean, does it rotate
> around the ends?

No.

> If I POP one time too many, what do I get?

If you put more items, than the stack can hold, you loose the oldest ones.
If you get more items, than you put, you get 0es. 

--
Penio Penev <Penev@venezia.Rockefeller.edu> 1-212-327-7423