On Friday, 13 January 2023 at 19:07:46 UTC, DLearner wrote:
Is this intended?

It is by design, though opinions differ on whether it's a good design.

It's not a problem to add temporary
```
void main() {

}
```
to the bottom of the module,

You can add the `-main` flag to make dmd automatically add such an empty main function when there isn't a `main` already.


  • Unittests on a module DLearner via Digitalmars-d-learn
    • Re: Unittests on a module Dennis via Digitalmars-d-learn

Reply via email to