Is it possible to disallow import for certain functions?

XavierAP n3minis-git at yahoo.es
Sat Jul 27 12:16:33 UTC 2019


On Saturday, 27 July 2019 at 11:54:09 UTC, BoQsc wrote:
> I would like to make sure that function in module that I have 
> won't be imported, is this possible to achieve?

In general, make the function private.

But indeed, on your case, it is a terrible idea to define a 
main() function in a module that you plan to import. Move it out 
into its own main module.


More information about the Digitalmars-d-learn mailing list