dmd -unittest works poorly with executables

Andrew Pennebaker andrew.pennebaker at gmail.com
Sat Dec 8 20:16:09 UTC 2018


I think it's lame to have to use magical code like 
`version(unittest) {} else` to guard our main functions, when we 
run unit tests. Could D go ahead and do the right thing, 
automatically shadowing our main functions when the unit tests 
are run?


More information about the Digitalmars-d-learn mailing list