[Oberon] IMPORT Modules: why does order matter?

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Sat Mar 2 14:49:30 CET 2019

  > Do you mean, a module importing another module
  > also has to explicitly import all modules referred
  > by the imported module? That would be strange.

No! In general, this is not necessary, as the compiler
handles indirect imports. One only needs to import
an intermediate module, if the importing module
refers to its exported objects. But *if* it is imported,
all modules must be imported in the right order.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20190302/d42d093b/attachment.html>

More information about the Oberon mailing list