☜ | Extrinsic Function exfunc1995 Version of ANSI (Equivalent to Current ISO Version) of Standard | ☞ |
exfunc | ::= | $ | │ │ │ |
$ labelref externref |
│ │ │ |
actuallist |
Extrinsic functions invoke a subroutine to return a value. When an extrinsic function is executed, the current value of $Test, the current execution level, and the current execution location are saved in an exfunc frame on the PROCESS-STACK. The actuallist parameters are then processed as described in 8.1.7.
Execution continues either in the specified externref or at the first command of the formalline specified by the labelref. This formalline must contain a formallist in which the number of names is greater than or equal to the number of names in the actuallist, otherwise an error occurs with ecode = "M58". Execution of an exfunc to a levelline causes an error condition with ecode="M20".
Upon return from the subroutine the value of $Test and the execution level are restored, and the value of the argument of the Quit command that terminated the subroutine is returned as the value of the exfunc.
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 13-Sep-2014, 12:57:08.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)