[HECnet] Ugh

Brian Schenkenberger, VAXman- system at TMESIS.COM
Tue Jan 15 10:39:02 PST 2013


Brian Hechinger <wonko at 4amlunch.net> writes: 

On 1/15/2013 1:20 PM, Brian Schenkenberger, VAXman- wrote: > You'd need
to '$ DELETEE/SYMBOL/LOCAL XYZZY' to get the global definition. > In
your case, XYZZY is replaced with UNZIP. 

Basically it's the whole DELETE/SYMBOL thing i needed to do to clear out
the old copy. 

Now I know. :) 

;)

You need to appreciate the whole symbol defintion and scope thing.   There
are both GLOBAL and LOCAL symbol definitions in DCL.   A GLOBAL symbol can
be resolved from ANY procedure level.   A LOCAL symbol can only be resolved
in/at the procedure level in which is is/was defined.

$ SET NOON
$ XYZZY = "this is a local symbol"
$ SHOW SYMBOL XYZZY
$ CALL MYSUB
$ SHOW SYMBOL XYZZY
$ EXIT
$
$ MYSUB: SUBROUTINE
$ SHOW SYMBOL XYZZY
$ XYZZY = "redefine this local symbol"
$ SHOW SYMBOL XYZZY
$ EXIT
$ ENDSUBROUTINE

-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker       VAXman(at)TMESIS(dot)ORG

Well I speak to machines with the voice of humanity.



More information about the Hecnet-list mailing list