☜ | Number of SubscriptsDraft MDC Standard | ☞ |
There is no explicit limit on the number of distinct local variable nodes which may be defined, but there is an implicit limit based on the number of subscripts that may be defined for any local variable reference. The number of subscripts in a local variable is limited in that, in a local array reference, the total length of the array reference must not exceed 510 characters. The length of an array reference, assuming it is in the form name ( i1 , i2 , ... , in ), is calculated as follows. If:
N = $Length(name), | |
I = $Length(i1) + $Length(i2) + ... + $Length(in), where each subscript (i1 through in) is either a numlit or a sublit, and | |
L = n, |
then:
the total length of an array reference = N + I + ( 2 * L ) + 15. |
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 28-Nov-2011, 21:03:46.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)