(* This is designed to run Under Oberon V4 *)
MODULE Hello;
IMPORT Oberon, Texts;
VAR W: Texts.Writer;
PROCEDURE World*;
BEGIN
Texts.WriteString(W, "Hello World!");
Texts.WriteLn(W);
Texts.Append(Oberon.Log, W.buf);
END World;
BEGIN
Texts.OpenWriter(W);
END Hello.
This program tested on Oberon V4 Windows 32 bit version. When you create a new file Hello.Mod in Oberon's editor (Edit.Open Hello.Mod), select this text now and copy it it to the clipboard (File/Copy), paste it into Hello.Mod by placing the caret in that window and executing Clipboard.Copy command anywhere on the screen. Compiling is done by placing a marker (F1 key) on Hello.Mod window and running Compiler.Compile * in the System.Tool.