
-----------------------------------
wtd
Wed Sep 07, 2005 1:50 am

Pascal Aficionados: Oberon-2
-----------------------------------
http://spivey.oriel.ox.ac.uk/mike/obc/

Oberon is the modern successor to Nicolas Wirth's Pascal programming language.  It's a modern procedural language with an emphasis on modules.  The compiler is delightfully easy to install and use.

-----------------------------------
wtd
Wed Sep 07, 2005 1:57 pm


-----------------------------------
Obligatory "Hello world":

module Hello;

IMPORT Out;

BEGIN
   Out.String("Hello world!"); Out.Ln
END Hello.

With a procedure:

MODULE Hello;

IMPORT Out;

PROCEDURE SayHello;
BEGIN
   Out.String("Hello"); Out.Ln
END SayHello;

BEGIN
   SayHello
END Hello.
