☜ | Error Code M21M[UMPS] by Example | ☞ |
Introduced in the 1995 ANSI M[UMPS] language standard.
When a label occurs with a parameter list (a formallist), and the same name occurs multiple times in this parameter list, this error will occur.
Note that it does make sense to be able to have the same name multiple times in a parameter list when a function or subroutine is invoked (actuallist), but not in the formal parameter list at the start of that function or subroutine.
Set SUM=$$ADD(A,A)
is a valid function call.
ADD(X,X) Quit X+X
will cause this error to occur; most likely, this should have
been
ADD(X,Y) Quit X+Y
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 14-Nov-2023, 21:40:53.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)