☜ | $STACK1995 Version of ANSI (Equivalent to Current ISO Version) of Standard | ☞ |
This form returns a string as follows:
Values of intexpr less than –1 are reserved for future extensions of the $STack function.
$ST[ACK] ( intexpr , stackcodexpr )
stackcodexpr | ::= | expr V stackcode |
stackcode | ::= | │ │ │ │ |
PLACE MCODE ECODE |
│ │ │ │ |
This form returns information about the action that created this level of the PROCESS-STACK as follows:
stackcode | Returned String | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ECODE | the list of any ecodes added at this level. | ||||||||||
MCODE | the value (in the case of an Xecute) or the line for the location identified by $STack(intexpr,"PLACE"). If the line is not available, an empty string is returned. | ||||||||||
PLACE | the location of a command at the
intexpr level of the PROCESS-STACK as follows:
The location is in the form:
In place, the first case is used to identify the line being executed at the time of creation of this level of the PROCESS-STACK. The second case (@) shows the point of execution occurring in an Xecute. eoffset is an offset into the code or data identified by place at which the error occurred. The value might point to the first or last character of a "token" just before or just after a "token", or even to the command or line in which the error occurred. Implementors should provide as accurate a value for eoffset as practical. |
All values of stackcode beginning with the letter Z are reserved for the implementation. All other values of stackcode are reserved for future extensions of the $STack function. stackcodes differing only in the use of corresponding upper and lower case letters are equivalent.
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
This page most recently updated on 15-Nov-2023, 13:13:25.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)