Archive-name: computer-lang/Modula2-faq/part1
Version: 2.32
Last-modified: 2007 01 25
Posting-frequency: Monthly
Modula-2 Frequently Asked Questions
What is new in version 2.32 (2007 01 25)?
It's been a year and a half and there are few items to report.
Invalid links pointed out have been removed. Someday I'm going to
trim all the non-operative links, so I'd appreciate it if you would
let me know what's not working -- that is, if anyone is reading this.
The forum alternative to the Usenet news group at ArjayBB.com
(section 2.2.1) has been removed. It wasn't being used, the
conenction was hard to maintain, and bulletin boards get too much
spam.
The summary section 3.3 has been revised and expanded to all major
platforms. Note made that GPM does not run on spolaris 10 but the ULM
compiler does. Some information has been removed at the request of
manufacturers, who wish the only point of contact to be the web. One
old spelling error corrected (thanks Keith) and the GPM http links
corrected. The p1 section has been revised to reflect new products.
Under 1.11 (what is Modula-2 used for) answers have been expanded and
a new section (A10) added. The MegaMax Atari product has been removed
as the links appear no longer functional. The MOCKA links have been
alrtered and pruned. The GNU link was revised, and numerous small
changes were made throughout.
What was new in version 22.31 (2005 09 09)?
WThis one has another revision of A8 under 1.11, a new use under A9
of the same section, and a revised comment on GM-M2 in A4 of that
section. I have also revised answers relating to the Mac to clarify
that older compilers support only Classic, not OS X. The BURKS
project at Brighton has become defunct, so all references to this
resource have been removed.
SUMMARY:
1. Answers to many questions about Modula-2 as a programming notation
may be found in the shareware textbook. As always, users should pay
the shareware fee. See section 1.4.
2. Answers to most other frequently asked questions about Modula-2
will be collected by Rick Sutcliffe at Trinity Western University and
included in this document from time to time as it is revised.
3. Submissions should be mailed to -- rsutc-AT-arjay.bc.ca (modify
address in the obvious way)
Anyone making a submission guarantees that they have the right to do
so (copyright holder, or information in the public domain.) and that
the information is not from any source whose copyright lies with
another.
4. I will update this summary file and post to the newsgroups
comp.lang.modula2 and to comp.answers and news.answers
5. The latest version will always be available in a Nisus (Mac) form in
http://www.arjay.bc.ca/Modula-2/m2faq.html.
It is also available from the site rtfm.mit.edu in plain text form as
ftp://rtfm.mit.edu/pub/usenet-by-group/comp.answers/computer-lang/Mod...
and as
ftp://rtfm.mit.edu/pub/usenet-by-group/comp.answers/computer-lang/Mod...
CONTENTS:
Part 1
1. WHAT IS MODULA-2?
2. WHERE IS MODULA-2 DISCUSSED?
3. WHERE CAN I GET MODULA-2 COMPILERS?
Part 2
4. WHERE CAN I GET SOURCE CODE, OTHER INFO?
5. SPECIFIC QUESTIONS ON CODE AND ALGORITHMS
6. WHAT ARE SOME REFERENCE MATERIALS ON MODULA-2?
7. REVIEWS
Appendix: AUTHOR INFORMATION AND DISCLAIMERS
1. WHAT IS MODULA-2?
A. Modula-2 is a programming notation that corrects some of the
deficiencies of Pascal. It is suitable for learning programming, for
large projects written and maintained in the fashion of professional
software engineers, and for real time embedded systems. Modula-2 is
small, expressive, easy to learn, and to read.
1.1 Who developed Modula-2?
A. Modula-2 was developed by Niklaus Wirth at ETH in Zurich,
Switzerland in the late 70's. Wirth also developed Algol-W, Pascal,
Modula, and Oberon and the Lilith computer, a natively Modula-2
machine (see section 1.15).
1.2 Where is this language described?
A. In Programming in Modula-2 3rd edition published by
Springer-Verlag in 1985. For the purposes of distinguishing this from
later variants, this description will be referred to herein as
classical Modula-2.
1.3 How do you pronounce Herr Wirth's name?
A. It is incorrect to call him by his value (worth.) Instead his name is veart.
1.4 Can I get a simple introduction to ISO Modula-2?
Yes, the latest revised and corrected edition of the shareware text
as of 2004 is at http://www.modula-2.com/
Mirror (for the text, not the FAQ): TWU http://www.csc.twu.ca/rsbook/index.html
1.5 How does Modula-2 fit into the language zoo?
A. It is a descendent of Pascal and Modula, and one predecessor of
Modula-2+, Modula-2*, Modula-3, Oberon, Oberon-2, and various object
oriented versions of these. The latter languages are not replacements
for Modula-2, merely later notations in the same family, having
strengths and weaknesses of their own. Modula-2 is sometimes
classified with Ada and C as the trio of modern languages in view of
their expressive power. Modula-2 is smaller and more readable than
either.
1.6 What are the differences between Modula-2 and Standard Pascal?
A. Modula-2 has separately compiled library modules, and makes much
less use of blocks (begin...) than Standard Pascal. Identifiers are
case sensitive; there is no goto label; and I/O is in libraries
rather than built in. The IF statement is more versatile; and there
are facilities for concurrent programming via coroutines. Extended
Pascals may have some of these features.
1.7 What is ISO Standard Modula-2?
A. A committee of ISO JTC1/SC22/WG13 with delegates from several
countries met after 1987 to work on a standard description of
Modula-2 and a set of standard library modules.
A2. The official home of the ISO Modula-2 working group WG13 is at
http://sc22wg13.twi.tudelft.nl/
1.7.1 What is the status of ISO Standard Modula-2?
A. The international standard (IS 10514) was voted on and is
official. The Object oriented extensions and Generic extensions were
also voted on and are official.
1.7.2 Where can I get the Modula-2 standard?
A1. Contact your national standards body or ISO (the publisher.)
A2. For a slightly older version, try looking in
ftp://ftp.mathematik.uni-ulm.de/pub/soft/modula/standard/draft4/
1.7.3 What format is the standard document in?
A. Latex.
1.7.4 Who was the convenor of the standards group (WG13)?
A. Martin Schoenhacker of Vienna was the last convenor.
1.7.5 When was the last WG13 meeting?
A1. It was March 17-18 1997 in Linz, Austria. For more details,
follow http://sc22wg13.twi.tudelft.nl/docs/meetings.html
1.7.6 When is the next WG13 meeting?
A1. No meeting is currently on the schedule. One may be held if
necessary to do routine maintenance on the standards, but at this
time WG13 is in maintenance mode--not operating actively.
1.7.7 Will I be able to read the standard?
A1. The concrete syntax is written in a variation of EBNF (Extended
Backus-Naur Formalism) and should be accessible to most.
A2. Much of the base document's details are written in VDM-SL (Vienna
Development Method - Specification Language) which is a formalism for
giving a precise definition of a programming language in a
denotational style. It is worth learning VDM-SL if you plan to write
a compiler or use formal methods to do any design work.
1.7.8 Can I at least get electronic copies of the definition modules?
A. Yes, in ftp://FTP.twu.ca/pub/modula2/ISOLibraries/ISODEFMods/ or
ftp://ftp.mathematik.uni-ulm.de/pub/soft/modula/standard/libdefs/
1.7.9 Can I get ISO library code to port?
A. Yes, a partial ISO library is available from Rick Sutcliffe, the
FAQ maintainer. He has done an ISO I/O library for the Mac, and
StonyBrook ported this to their system. Anyone else is welcome to do
a port provided: (1) TWU gets a license to the software produced (2)
All code changes are marked and submitted to Rick Sutcliffe for the
benefit of anyone else who wants to do a port.
1.7.10 Can I get copies of the grammar?
A1. Yes, in http:/www.arjay.bc.ca/Modula-2/Text /Appendices/Ap3.html
A2. For classical Modula-2, see also Coco (section 4.9)
A3. There are nice syntax diagrams for classical Modula-2 in
http://cuiwww.unige.ch/db-research/Enseignement/analyseinfo/Modula2/B...
and there are syntax diagrams for ISO Modula-2 stored at
http://www.arjay.bc.ca/Modula-2/Text/Appendices/Ap2.html
1.8 What difference is there between classical and ISO Modula-2?
A. ISO Modula-2 has resolved most of the ambiguities in classical
Modula-2. It adds the data type COMPLEX and LONGCOMPLEX, exceptions,
module termination (FINALLY clause) and a complete standard I/O
library. There are numerous minor differences and clarifications.
1.8.1 What else has WG13 done?
A. WG13 has completed two additional standards (separate from the
main one) for (a) object oriented Modula-2 and (b) generic
programming facilities. Older versions of the generics proposal are
stored in the directory ftp://FTP.twu.ca/pub/modula2/WG13/
1.9 What is (was) Turbo Modula-2
A. Borland prepared CP/M versions of Modula-2 and sold them for a
time in Europe (also in North America via a distributer.) One of
these versions later migrated to become TopSpeed Modula-2.
1.10 What is (was) Top Speed Modula-2
See also 1.9. Eventually, Top Speed merged with Clarion, a maker of
database products, who used Modula-2 as their DB language, and for a
time sold Top Speed separately. Later still, this became
SoftVelocity, but the Modula-2 compiler has vanished. A fuller
history is available at http://www.attryde.com/clarion/.
1.11 Where and for what is Modula-2 used?
A1. Modula-2 is widely used for teaching the fundamentals of sound
programming techniques, data structures, and software engineering in
many parts of the world. It has been the language of choice in much
of Europe, though Java and C++ have made great inroads. Modula-2 has
features that make it superior to other languages for
...