How to exclude function from being imported in D language?

BoQsc vaidas.boqsc at
Wed Mar 9 08:33:42 UTC 2022

On Tuesday, 8 March 2022 at 22:28:27 UTC, bauss wrote:
> On Tuesday, 8 March 2022 at 20:12:40 UTC, BoQsc wrote:
>> I think D Language needs and lacks conditional compilation 
>> condition and attribute of "exclude". The exclude keyword or 
>> code block in the exclude, would be made sure to not be 
>> imported by any means. Now it seems all to be only workarounds.
> What D just needs is a way to specify the entry point, in which 
> it just defaults to the first main function found, but could be 
> any function given.

Yeah that would be as great. Without this, the project modules 
feel non-interactive and always depending on other modules. 
Dependant modules do not feel modular, if you can't bring them to 
other project as a standalone module.

More information about the Digitalmars-d-learn mailing list