Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Extrinsic Function exfunc

Draft MDC Standard

7.1.4.8 Extrinsic function exfunc

    exfunc::= $


$ labelref
libraryref
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 condition 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.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

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.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 13-Sep-2014, 12:57:08.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)