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=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to