Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pascal Aficionados: Oberon-2
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Wed Sep 07, 2005 1:50 am   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Wed Sep 07, 2005 1:57 pm   Post subject: (No subject)

Obligatory "Hello world":

code:
module Hello;

IMPORT Out;

BEGIN
   Out.String("Hello world!"); Out.Ln
END Hello.


With a procedure:

code:
MODULE Hello;

IMPORT Out;

PROCEDURE SayHello;
BEGIN
   Out.String("Hello"); Out.Ln
END SayHello;

BEGIN
   SayHello
END Hello.
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: