On 12/8/18 3:16 PM, 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?
Thi
On Sat, 08 Dec 2018 20:16:09 +, 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
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
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?