Flag proposal

bearophile bearophileHUGS at lycos.com
Fri Jun 10 18:35:08 PDT 2011


David Nadlinger:

> At least allowing imports in unittests would be nice though – I 
> frequently find myself writing »version (unittest) {}« blocks before the 
> actual unit tests just to import some modules not needed during regular 
> builds (yeah, I suppose I'm somewhat pedantic about that).

version(unittest) was added just to solve this problem, and for me it's a good solution. So imports in unittests is an anti-justification for the turtle-import feature.

Bye,
bearophile


More information about the Digitalmars-d mailing list