☜ | Extrinsic Function exfunc1990 Version of ANSI Standard | ☞ |
exfunc | ::= | $ $ labelref actuallist |
See 2.5.7 for the definition of labelref. See 2.5.9 for the definition of actuallist.
Extrinsic functions are denoted by the prefix $$ followed by a labelref followed by an actuallist of parameters. Extrinsic functions invoke a MUMPS subroutine to return a value. When an extrinsic function is executed, the current value of $T, 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 2.5.9.
Execution continues 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. Execution of an exfunc to a levelline is erroneous.
Upon return from the subroutine the value of $T 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)