Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: PatrickHenry

But can you GOTO out of a subroutine letting the subroutine reach the RETURN statement? Wouldn't that leave the return pointer stuck on the stack, leading to a memory leak? Or have I just written too much assembly?


379 posted on 07/17/2006 3:36:09 PM PDT by Dimensio (http://angryflower.com/bobsqu.gif <-- required reading before you use your next apostrophe!)
[ Post Reply | Private Reply | To 377 | View Replies ]


To: Dimensio; PatrickHenry
But can you GOTO out of a subroutine letting the subroutine reach the RETURN statement? Wouldn't that leave the return pointer stuck on the stack, leading to a memory leak?

Actually, that could explain a lot of things...
380 posted on 07/17/2006 3:36:58 PM PDT by Dimensio (http://angryflower.com/bobsqu.gif <-- required reading before you use your next apostrophe!)
[ Post Reply | Private Reply | To 379 | View Replies ]

To: Dimensio
But can you GOTO out of a subroutine letting the subroutine reach the RETURN statement? Wouldn't that leave the return pointer stuck on the stack, leading to a memory leak?

I wrote lots of stuff that way, back in my Apple ][ days. Trivial stuff. It's sloppy programming, but it always worked. Maybe I was just lucky.

Actually, in the first draft of what I just posted, I had the GOTO line repeated after each RETURN, but I "tightened it up" in order to make the whole thing shorter so it wouldn't be a monster post. Not recommended.

382 posted on 07/17/2006 4:42:53 PM PDT by PatrickHenry (The Enlightenment gave us individual rights, free enterprise, and the theory of evolution.)
[ Post Reply | Private Reply | To 379 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson