ZLINK Command¶
Material prepared from M Programming Book (Page 208) [WALTERS1997] and GT.M Programmer’s Guide
Command¶
ZLINK adds an exectuable GTM routine if the current process does not have a copy of a routine. If the current process has a routine but the routine is not active, ZLINK updates the routine to a newer version. ZLINK will also compile the process if necessary.
ZLINK Command:
ZL[INK][:tvexpr] [expr1[:expr2][,...]]
tvexpr is an optional truth-valued expression that controls if GTM executes a command or not.
expr1 is an optional expression that designates the pathname of a routine.
- If there are no arguments or expressions, ZLINK uses the value of $ZSOURCE
- -Note that if there are no arguments then two spaces must follow ZLINK before another command.
expr2 is an optional string which controls compiler options. If no expression is indicated, then ZLINK will use the $ZCOMPILE variable for compiler options.
Examples¶
Here is an basic example of the ZLINK Command:
ZL[INK] "file name"
“file name” is the name of the file (excluding the .m) after the program has been run at least once or has been changed.
Additional detail can be found here