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.