Skip to content

Language Specification (A) : Pragma Facilities

Benjamin Kowarsch edited this page Jul 4, 2026 · 2 revisions

Pragma Facilities

Pragmas are non-semantic directives — instructions to the language processor to control or influence the compilation process but do not alter the semantics of the compiling source code.

Portable Pragma Specification

Modula-2 R10 incorporates the portable pragma specification for Modula-2 and other Wirthian languages at

Portable Pragmas for Pascal, Modula-2 and Oberon

However, some of the pragmas specified do not apply to Modula-2 R10

RANGE RELEASE RETAIN

Mandatory Pragmas

The Bootstrap Kernel (BSK) subset requires support for the following pragmas

DEPRECATED FFI FFIDENT INLINE PRIVATETO

Implementations that support Unicode are further required to support pragma

ENCODING

Implementation Defined Pragmas

Implementations may provide implementation defined pragmas in compliance with the portable pragma specification. The compiler ID prefix shall match Impl.ShortName. To facilitate portability, implementations that provide implementation defined pragmas shall further support pragmas

PRESETS UNSET

Clone this wiki locally