ModuleContainsSymbol

Check if module contains a symbol

template ModuleContainsSymbol (
string moduleName
string symbolName
) {}

Members

Manifest constants

ModuleContainsSymbol
enum ModuleContainsSymbol;
Undocumented in source.

Parameters

moduleName

module to be imported

symbolName

symbol to be checked

Examples

assertTrue(ModuleContainsSymbol!("std.stdio", "writeln"));
assertFalse(ModuleContainsSymbol!("std.stdio", "thissymboldoesntactuallyexist"));

// check for static eval
static assert(ModuleContainsSymbol!("std.stdio", "writeln"));

Meta