How to exclude function from being imported in D language?

bauss jj_1337 at
Fri Mar 18 11:30:14 UTC 2022

On Friday, 18 March 2022 at 03:24:10 UTC, Era Scarecrow wrote:
> On Tuesday, 8 March 2022 at 22:28:27 UTC, bauss wrote:
>> 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.
>  Which is similar to what Java does.
>  When i was first learning Java in a company i would make 
> main() and have it run all the unittests of that particular 
> module, then have a different file that actually combined all 
> the tools together to run the program. Though when making the 
> jar I'd specify which one actually was needed. But this was... 
> 10 years ago.

Yeah, it's similar to most other languages that allows it too.

It doesn't make much sense to force an entry point anyway, 
especially not in D where there is no real entry point anyway, 
but the compiler already emits a couple of different ones that 
are platform dependent.

More information about the Digitalmars-d-learn mailing list