Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!news.cs.indiana.edu!ux1.cso.uiuc.edu!roundup.crhc.uiuc.edu!m.cs.uiuc.edu!ernie!bazyar From: bazyar@ernie (Jawaid Bazyar) Newsgroups: comp.sys.apple2 Subject: Re: Stacks, Basic, and Onerr Message-ID: <1991Mar20.160105.14029@m.cs.uiuc.edu> Date: 20 Mar 91 16:01:05 GMT References: <9103191800.AA11676@apple.com> <9788@latcs1.oz.au> Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager)) Reply-To: bazyar@cs.uiuc.edu (Jawaid Bazyar) Organization: Mutation Testing Facility, University of Illinois Lines: 19 >"Edward M. Moore" writes: > I'm trying to design a program using gosubs. One of the sections is > where I have a file-handeling (loading a shape table) from disk. I would > like to use OnErr Goto in order to handle the error, but when that happens > I loose my stack of gosubs. How can this be prevented? I seem to recall there being a bug with Applesoft's error handling routines that could cause it to forget the gosub stack in certain cases. A few pokes correct the problem, but offhand I wouldn't know what they were (it's been years since I hacked Applesoft). A good place to find out would be "What's Where in Your Apple II", the all-time Applesoft Hacker's Bible. I might have the proper code in my old Basic BBS program- I'll see if I can find it (the program's a nasty mess though, so no guarantees). -- Jawaid Bazyar |"I'm sure K&R have never heard of Mike." Senior/Computer Engineering | bazyar@cs.uiuc.edu |"That's okay. I'm sure Mike's never heard of K&R". Apple II Forever! | (discussion about Orca/C)