How to check that import module will succeed?
Andrey Zherikov
andrey.zherikov at gmail.com
Fri Jul 26 15:06:51 UTC 2019
On Friday, 26 July 2019 at 14:19:05 UTC, Paul Backus wrote:
> version(HasStdio)
> import std.stdio;
> else
> pragma(msg, "std.stdio is not available");
>
> Then configure your build system to pass `-version=HasStdio` to
> dmd (or the equivalent flag to ldc or gdc) when std.stdio is
> available.
I want to achieve similar result without versions.
More information about the Digitalmars-d-learn
mailing list