I want to call your attention to John Oliger‘s article (see “Problems in using the new V2.4 MERGE Command”), because it has universal application. The scenario is, a Basic program picks up garbage that is stuck within the program space that it occupies in memory (PROG to VARS). It’s kinda like one walking through the woods and not realizing that chiggers are finding a warm bod to invade. Junk stuck in the program area is just as hard to get rid of as them pesky chiggers. You can’t see um and they’re stuck like they’re a piece of ya.
When you SAVE a Basic program that contains junk (chiggers) the junk SAVES right along with the program (at least chiggers eventually die). How does junk invade a Basic program? Well, one way is via a “bad load”, where a loading error occurs after some, or all of a program has loaded. You’ve seen this in program loads that aborted, and when you try LISTing the program, it scrolls and scrolls with a screen full of “?” question marks. Thats junk (chiggers), pardner, and the whole mess is in the program area of memory. The computer is trying to list the program but the last program line contains junk that extends all the way up to the end of memory and the systems vars VARS has not been set. Of course such a gross invasion of the program area by bugs cannot easily be recovered from.
What John is talking about in his article is a “lesser invasion”, kinda like intestinal parasites. The program lives and the patient might not even know that they’re in there. Funny how a program can live a normal life while hosting such parasites indefinitely. But eventually there comes a time when the buggers are detected. In this case they were discovered when someone tried to MERGE to the space where the critters had set up housekeeping.
John gives us a very useful procedure to rid a program of bugs that have invaded the program area. I’m highlighting it here because it has universal usage. Now there are many different kinds of bugs. Sometimes you can get rid of um with RAID and other times you have to take somethin fer it. In this case John shows us how to cut um out. Disgusting, them parasites, eh?