dmd -unittest works poorly with executables

Paul Backus snarwin at gmail.com
Sat Dec 8 20:48:23 UTC 2018


On Saturday, 8 December 2018 at 20:16:09 UTC, Andrew Pennebaker 
wrote:
> 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?

The correct place to submit an enhancement request like this is 
the D issue tracker at issues.dlang.org.


More information about the Digitalmars-d-learn mailing list