How to check that import module will succeed?
Andrey Zherikov
andrey.zherikov at gmail.com
Fri Jul 26 15:04:21 UTC 2019
On Friday, 26 July 2019 at 14:14:11 UTC, Anonymouse wrote:
> I use __traits(compiles, __traits(identifier, moduleName)) now
> instead and it seems to work.
I couldn't find "identifier" docs on
https://dlang.org/phobos/std_traits.html. But I tried and it
doesn't work - I think because <moduleName> is unknown identifier
until "import <moduleName>" is happened.
More information about the Digitalmars-d-learn
mailing list