'exp' vs 'std'? Forked: Vote for std.process

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Apr 12 09:49:09 PDT 2013


On 4/12/13, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> pragma(msg, module.stringof ~ " is experimental, subject to API changes");

I like this better:

version(UseExperimentalProcess) { }
else pragma(msg, module.stringof ~ " is experimental, subject to API changes");

That way I can turn off the warning by passing
-version=UseExperimentalProcess on the command-line. That of course
means I take full responsibility for using experimental code.


More information about the Digitalmars-d mailing list