November 2002
Intermediate to advanced
560 pages
11h 16m
English
Component Pascal is an object-oriented language of the Pascal family. Its ancestors are Pascal, Modula-2, and Oberon. The language is almost a strict superset of Oberon-2. Listing E.1 is the canonical “hello world” program for Component Pascal, shown in the so-called publication format.
module Hello;
import CPmain, Console;
begin
Console.WriteString("Hello CP World");
Console.WriteLn;
End Hello.
|
The object-oriented features of Component Pascal include single implementation inheritance, with explicit annotations that control the extensibility of types and of methods. Compared to other members of the Pascal family, the signatures of procedures are more expressive, with Ada-like annotations specifying whether ...
Read now
Unlock full access