CompuServe Messages

#Pure modules

    03-Jan-92 21:51:44
Sb: #18481-#Pure modules
Fm: Walt Weber 71066,1741
To: Robert Clark 72330,1612
I didn't read the other reply, but basically, you can't use global variables. It might be ok to use a global, but you have to be very carefull. My understanding is that, after the first time you invoke a program, it remains in the state that it was in when it exited. (Ooops, that is, when you make a program RESIDENT.) Globals aren't re-initialized so you can end up with garbage. You can allocate memory and store stuff and, I think, you could use globals if your program specifically initializes its values (and you don't multitask). I've only played a little with trying to crash code and I am by far not an expert………………………WW