Oberon is an actively used programming language created in 1986. Oberon is a general-purpose programming language created in 1986 by Niklaus Wirth and the latest member of the Wirthian family of ALGOL-like languages (Euler, Algol-W, Pascal, Modula, and Modula-2). Oberon was the result of a concentrated effort to increase the power of Modula-2, the direct successor of Pascal, and simultaneously to reduce its complexity. Its principal new feature is the concept of type extension of record types: It permits the construction of new data types on the basis of existing ones and to relate them, deviating from the dogma of strictly static data typing. Read more on Wikipedia...

34Years Old 527Users ?Jobs

Example code from Wikipedia:

MODULE Rectangles;

IMPORT Figures;

   Rectangle* = POINTER TO RectangleDesc;

   RectangleDesc* = RECORD
      x, y, w, h : INTEGER;

PROCEDURE Draw* (r : Rectangle);
  (* ... *)
END Draw;

(* Other procedures here *)

PROCEDURE Handle* (f: Figure; VAR msg: Figures.Message);
      r : Rectangle;
   r := f(Rectangle);
   IF    msg IS Figures.DrawMsg THEN Draw(r)
   ELSIF msg IS Figures.MarkMsg THEN Mark(r)
   ELSIF msg IS Figures.MoveMsg THEN Move(r, msg(Figures.MoveMsg).dx, msg(Figures.MoveMsg).dy)
   ELSE  (* ignore *)
END Handle;

PROCEDURE New* (VAR r : Rectangle);
   Figures.Init(r, Handle);
END New;

END Rectangles.

Last updated August 9th, 2020

Edit Oberon on GitHub