Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!hp-pcd!hpcvra.cv.hp.com!rnews!hpcvbbs!akcs.falco From: akcs.falco@hpcvbbs.UUCP (Andrey Dolgachev) Newsgroups: comp.sys.handhelds Subject: Re: CLEARing stack Keywords: CLEAR Message-ID: <27aa4465:1846.7comp.sys.handhelds;1@hpcvbbs.UUCP> Date: 2 Feb 91 05:40:05 GMT References: <10535@jarthur.Claremont.EDU> <10550@jarthur.Claremont.EDU> Lines: 10 O.K. I get the point, time to change the ol' Tetris program again. Another idea, which somebody mentioned is to put a unique object on the stack and then at the end of the program, simply run this loop DO UNTIL (whatever the unique object is) == END Of course, the problem with this idea, is that although it is flexible, it does not allow the user to use objects which were left on the stack as arguments for INPUT or such. However, this is also a problem with the other ideas, like DEPTH stackdepth - DROPN, posted by Ian. There must be a perfect solution which HP uses, right? ---Falco