☜ | Error Code M75M[UMPS] by Example | ☞ |
Approved for inclusion in a future M[UMPS] language standard.
For portability, the length of strings is limited. The 1977 ANSI M[UMPS] language standard limited this length to 255 characters, in a future M[UMPS] language standard, this limit will be raised to:
Implementations may offer longer strings than the portability limit.
If an implementation attempts to create a string that is longer than the string length limit for the implementation in question, this error will occur.
This error will not occur for any string that has a length greater than the portability limit, but less that the limit of the implementation.
Set X="",$ETrap="GOTO ERROR"
Write !,"This should work with the 1977 standard"
For I=1:1:255 Set X=X_$Char(I#26+65)
Do SHOW
Write !,"The next code-line is not portable with"
Write !,"the 1990 standard, but is"
Write !,"portable with the 1995 standard."
For I=256:1:510 Set X=X_$Char(I#26+65)
Do SHOW
Write !,"The next code-line is not portable with"
Write !,"the 1995 standard, but is"
Write !,"portable with the proposed millennium standard."
For I=511:1:32767 Set X=X_$Char(I#26+65)
Do SHOW
Write !,"The following remains non-portable:"
For I=1:1 Set X=X_$Char(I#26+65)
; The above line will cause error M75 to occur
;
SHOW Write !,"Now ",$LENGTH(X)," characters."
Quit
;
ERROR Do SHOW Set $ETrap="" Quit
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:43:26.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)