Modula-2

(redirected from Modula2)

modula-2

[′mäj·ə·lə ′tü]
(computer science)
A general-purpose programming language that allows a computer program to be written as separate modules which can be compiled separately but can share a common code.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.

Modula-2

(language)
A high-level programming language designed by Niklaus Wirth at ETH in 1978. It is a derivative of Pascal with well-defined interfaces between modules, and facilities for parallel computation. Modula-2 was developed as the system language for the Lilith workstation.

The central concept is the module which may be used to encapsulate a set of related subprograms and data structures, and restrict their visibility from other portions of the program. Each module has a definition part giving the interface, and an implementation part.

The language provides limited single-processor concurrency (monitors, coroutines and explicit transfer of control) and hardware access (absolute addresses and interrupts). It uses name equivalence.

DEC FTP archive.

["Programming in Modula-2", N. Wirth, Springer 1985].
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)

Modula-2

(MODUlar LAnguage-2) An enhanced version of Pascal introduced in 1979 by Swiss professor Nicklaus Wirth, creator of Pascal. It supports separate compilation of modules, allowing it to be used for large projects. The following example changes Fahrenheit to Celsius:

      module FahrToCent;
   from InOut import ReadReal,WriteReal,
   WriteString,WriteLn;
   var Fahr:real;
   begin
   WriteString("Enter Fahrenheit ");
   ReadReal(Fahr);
   WriteLn;
   WriteString("Celsius is ");
   WriteReal((Fahr - 32) * 5 / 9);
      end  FahrToCent
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.