VersionCondition.checkReserved

Raises an error if a version identifier is reserved.

Called when setting a version identifier, e.g. -version=identifier parameter to the compiler or version = Foo in user code.

class VersionCondition
extern (D) static
void
checkReserved
(
const ref Loc loc
,
const(char)[] ident
)

Parameters

loc Loc

Where the identifier is set

ident const(char)[]

identifier being checked (ident[$] must be '\0')

Meta