Conpile-Time module constructor

Paul Backus snarwin at gmail.com
Sun Jun 19 15:19:28 UTC 2022


On Sunday, 19 June 2022 at 14:51:26 UTC, Ruby The Roobster wrote:
> Is it possible to make a module constructor run at 
> compile-time?  If so, how?

No, it's not.

What are you trying to accomplish that lead you to ask this 
question? There is probably a different way to do it without 
involving module constructors.


More information about the Digitalmars-d-learn mailing list