Chapter 5. General Language Features of M

Revision History
Revision V7.1-004 27 June 2024
Revision V7.1-002 19 September 2023
Revision V7.1-001 26 June 2023
Revision V7.0-005 02 December 2022
Revision V7.0-003 24 June 2022
Revision V7.0-002 23 March 2022
Revision V7.0-001 24 November 2021
Revision V6.3-007 04 February 2019
Revision V6.3-006 26 October 2018
Revision V6.3-005 29 June 2018
Revision V6.3-003 12 December 2017
Revision V6.3-002 22 August 2017
Revision V6.3-001 20 March 2017
Revision V6.2-001 27 February 2015

In “Labels”, improved the description of "local" labels.

Revision V6.0-001 21 March 2013

Table of Contents

Data Types
Numeric Expressions
Numeric Accuracy
Integer Expressions
Truth-valued Expressions
M Names
Variables
Arrays and Subscripts
M Collation Sequences
Local Variables
Global Variables and Resource Name Environments
Naked References
Global Variable Name Environments
Literals
String Literals
Numeric Literals
Expressions
Operators
Precedence
Arithmetic Operators
Logical Operators
String Operators
Numeric Relational Operators
String Relational Operators
Pattern Match Operator
Commands
Postconditionals
Timeouts
Interrupt Handling
M Locks
Intrinsic Functions
Intrinsic Special Variables
Routines
Lines
Entry References
Label References
Indirection
Argument Indirection
Atomic Indirection
Entryref Indirection
Pattern Code Indirection
Name Indirection
Indirection Concerns
Parameter Passing
Actuallists
Actualnames
Formallists
Formallabel
Parameter Passing Operation
Parameter Passing Mechanisms
GT.M Parameter Passing Extensions
External Calls
Extrinsic Functions
Extrinsic Special Variables
Transaction Processing
TP Definitions
Key Considerations - Writing TP Code
TP Performance
TP Example

This chapter describes general features of the M language, as well as general information about the operation of GT.M. Commands, Functions, and Intrinsic Special Variables are each described in separate chapters. This chapter contains information about exceptions, as well as information about general M features.

MUMPS is a general purpose language with an embedded database system. This section describes the features of the language that are not covered as Commands, Functions, or Intrinsic Special Variables chapters.