digitalmars.D - Functions/variables not included in a specific module
- Menshikovk Konstantin (9/9) Feb 26 2021 Modules automatically provide a namespace scope for their
Modules automatically provide a namespace scope for their contents, because of this, you cannot define a function declared in a module with a different name. It doesn't seem good to me. For example, I wrote a library for writing application plugins. I want the user of my library to restrict from the abstraction functions below mine (like DLLMain on Windows) and I want him to define the plugin launch functions as an example. It would be nice to add functions/variables independent of a specific module.
Feb 26 2021