Date: Thu, 9 Mar 1995 09:16:09 EST Reply-To: The NOMAD2 Discussion List Sender: The NOMAD2 Discussion List From: "Walter H.Horowitz" Subject: Re: RELEASING &VARIABLES AFTER USE On Tue, 7 Mar 1995 09:15:02 -0500, DANIEL J. YEAGER ([216] 471-6371) writes: > Subject: Releasing &Variables after use > > The clean up is not complete since I have &variables declared > that are no longer needed. If the users chooses to run several of > the modules, the number of &variables that are declared gets quite > large. How can I delete these &variables after they are no longer > needed? I have looked through the manuals and I have not seen any > reference to this anywhere. I received the following comment from Nick Rawlings: This is an old question without a good answer. Automatics are one solution, but they have many limitations (e.g. they cannot be used in SELECTs or FORMs, for those may persist after the proc goes away) that they aren't much used. Also, one branch of an application wants to share amps, so "local globalness" is needed. As for the "reDECLARE AS A1" suggestion, beware! For amps with long data fields (especially arrays) the redeclare can be a saving of space. For shorter amps, though, you spend far more in paging, cpu, and (yes purgeable) space than you save. It's one gotcha I've put in my next user conf presentation. There's a SUR somewhere that documents the need for unDECLARE, but it's low on current lists. Walter H. Horowitz - email whh@dart.thomsoft.com Thomson Software Products - (203) 845-5025 back to index