Right. Its killing the Array that you NEWED. The Array that existed before the NEW will still be restored when the bottom QUIT is done. When the frame that held the NEW is popped.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg Sent: Sunday, February 12, 2006 12:04 AM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] KILL'ing and NEW'ing -- what's really happening? On 2/11/06, Gary Monger <[EMAIL PROTECTED]> wrote: > > NEW Array,done ; Array and done pushed on the stack > SET done=0 ; > FOR DO Q:done ; DO pushes a new frame on the stack > . ; If NEW variable here, value will pop with DO frame > . KILL Array ; > . I $$Up(.Array) D ... ; Array is updated > . set done=1 ; > . Q ; Explicit or implicit Q will pop DO frame > ; References to Array,done here will be valued > ; as they were set in the loop > Q ; Explicit or implicit Q will pop this frame > ; with it go the current values of Array,done > ; > > The scope of the NEW lasts until the next QUIT at the same level. > > Ok, so that KILL Array is acting on the frame at the level equal to when it was NEW'ed, not a new frame because it is the loop etc. Thanks! Kevin ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members