[Oberon] Modula2 vs Oberon IMPORT

Douglas G. Danforth danforth at greenwoodfarm.com
Sat Jan 8 07:36:45 CET 2011


> Happy New Year Everybody!
>
> I see that in Modula only the required procedures are IMPORTed, like:
>
> FROM STextIO IMPORT WriteString, WriteLn;
>
> Conversely, in Oberon, the whole Module has to be IMPORTed in order to
> get to use the equivalent procedures.
>
> It would seem to me that Oberon "programs" would be that much more
> "bloated" with unnecessary code. Am I correct in this conclusion? Is
> there a way to selectively IMPORT procedures in Oberon? It doesn't
> appear to me to be possible.

The question is whether Modula really only imported the code for the 
specified procedures
OR imported the whole module (loaded it into memory) but only made 
available the
stated procedures.

Anyone know?

-Doug Danforth




More information about the Oberon mailing list