On Wednesday, 1 May 2019 at 22:35:12 UTC, ag0aep6g wrote:
On 02.05.19 00:25, kdevel wrote:
dmd -unittest -main -run package.d c/package.d
That doesn't compile c/package.d. Everything after `-run
package.d` is interpreted as an argument to the compiled
program.
Thanks for the information. Wouldn't it be better, if everything
directly
after the `-run` would be taken as argument to the programm? In
this case
dmd -unittest -main -run package.d
would immediately fail due to missing source.
[...]
Or use -i so that DMD compiles the imported module
automatically:
dmd -unittest -main -i -run package.d
That looks nice.