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

ASCII 40

M[UMPS] by Example

Left parenthesis ("(")

ASCII code 40.

This character may be used in conjunction with a matching right parenthesis to indicate a priority of evaluation.
Set X=12+(3*4)

This character may be used in conjunction with a matching right parenthesis to delimit lists of subscripts from names of variables.
Set X=NAME(3,"ABC",2)

This character may be used in conjunction with a matching right parenthesis to delimit parameter lists of intrinsic functions.
Set X=$ASCII("ABC",2)

Addition in the 1990 ANSI M[UMPS] language standard:

This character may be used in conjunction with a matching right parenthesis to delimit parameter lists of subroutines, extrinsic variables and extrinsic functions.
Do LABEL^ROUTINE(A,12,.X)
LABEL(ONE,TWO,THREE) ; 3rd parameter by reference
Set X=$$VAR
Set Y=$$FUNCT(A,12)
Job ENTRY^PROGRAM(A,B,C)

Approved for addition in a future M[UMPS] language standard:

This character may be used in conjunction with a matching right parenthesis to delimit names of variables to which a value may be assigned in the context of the "find pattern match" operator.
If '(X?4N(ITEM)1","1.3N(QUANT(ITEM)) Do ...

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.

The information in this page is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

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 16-Nov-2023, 14:33:12.

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