[Oberon] Oberon for a C++ user.

Srinivas Nayak sinu.nayak2001 at gmail.com
Thu Sep 29 16:36:20 CEST 2016


>> System.ShowModules or similar command shows some kind of reference count attached to modules.
>> Do you mean, this is not sufficient for security problem that you mentioned?

> No, it is not sufficient. The reference shown by ShowModules refers to modules. The reference counting that I mentioned would refer to procedure variables. You can try it yourself. Write a module which imports another module and declares several procedure variables which you can assign at run time. Compile and execute. The imported module will have an import count of one. Now assign the procedures from the imported module to the variables. The import count will not change. Note, I have not tried this. I am speaking based on understanding how it all works.

I see.
Now, *importer* module is using *imported* module.
If we look at module hierarchy, now we see, importer sits on top of imported.
Here, if imported module can be unloaded, procedure variables in importer module will be dangling.
But, since imported module now has a reference count of 1, it can't be unloaded.
So I think, there is no chance of procedure variables in importer module become dangling.

Kindly correct me.


With thanks and best regards,

Yours sincerely,
Srinivas Nayak

Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.in/


More information about the Oberon mailing list