Examples of KILL

Example:

        GTM>KILL SET a=0,a(1)=1,a(1,1)="under" KILL a(1) ZWR
        a=0
        GTM>
        

This uses an argumentless KILL to get a "fresh start" by deleting all existing local variables. After SETting a, a(1), and a(1,1), the KILL deletes a(1) and its descendants. The ZWRITE shows only a remaining.

Example:

          GTM>KILL (a,b),^AB(a,b)
        

The first argument (an exclusive KILL) specifies to KILL all local variables except a and b. The second argument deletes ^AB(a,b) and any descendants of that global variable node.