[Oberon] Module finalization via a CLOSE language construct

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Sun Jan 3 04:10:58 CET 2021


    > > PS: CLOSE and Modules.Close cannot be mixed and matched. 
    >
    > Is there a reason to have both, but use only one? Like for example,
    > easier porting of V4 finalization using Modules.Close? 

No, this was not a goal!

I just noticed that after having added Modules.Close (i.e. a field mod.close),
the CLOSE construct of Component Pascal could be added with only a few
additional lines in the compiler.

As I stated, this construct is just an experimental feature for now (it’s
undocumented in the official documentation and may not survive..)





More information about the Oberon mailing list