isDKeyword

fnbool isDKeyword(string name) @safe pure nothrow @nogc

Reports whether name is a D keyword (or one of the special __-tokens that may not be used as identifiers).

Parameters

namethe candidate identifier.

Returns

true when name cannot be used as an identifier.