[Oberon] Modula2 vs Oberon IMPORT

Duke Normandin dukeofperl at ml1.net
Sat Jan 8 21:14:35 CET 2011

On Sat, 8 Jan 2011, Aubrey.McIntosh at Alumni.UTexas.Net wrote:

> There are Oberon systems that are programmed in Oberon, the
> language, that run on Linux.

I have LNO running on my Xubuntu box. I don't use it much! Also tried A2.

> When running the Oberon system, you have access to a complete system +
> language by the same design.

You bet!

> In this system, I can write a module that does some calculation and
> writes formatted text.  It would import a module Texts.  The other
> parts of the system would also import Texts.  This code is shared, and
> it is loaded on demand.

i assumed that the Oberon OS _was_ smart enough to figure out if a
Module being requested by some app. is already loaded and ready to
boogie. :)

> In actual practice, the code is fast and small.  More importantly, the
> code that you write is transparently what the compiler produces.  If
> you find a module that has one set of code that is not often called
> when another set is called, you can re-factor the source so that there
> are two modules, and only import the one that you want.

I see!

> This is a much bigger burden on the code designer/author.  But the
> benefits are enormous, even to that same author in the future when
> maintaining code.

Thanks for the input!

More information about the Oberon mailing list