On Friday, 26 July 2019 at 03:42:58 UTC, Andrey Zherikov wrote:
Is there a way to check whether some module, say "foo", is available for import before doing "import foo"?
static if (is(typeof((){import that.module.here;}))) { // it is available }
Adam D. Ruppe via Digitalmars-d-learn Fri, 26 Jul 2019 08:30:40 -0700
On Friday, 26 July 2019 at 03:42:58 UTC, Andrey Zherikov wrote:
Is there a way to check whether some module, say "foo", is available for import before doing "import foo"?
static if (is(typeof((){import that.module.here;}))) { // it is available }