The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
VarDeclaration.getConstInitializer
dmd
declaration
VarDeclaration
If variable has a constant expression initializer, get it. Otherwise, return null.
class
VarDeclaration
extern (
D
) final
Expression
getConstInitializer
(
bool
needFullType
= true
)
dmd
declaration
VarDeclaration
functions
addMaybe
callScopeDtor
canTakeAddressOf
checkNestedReference
enclosesLifetimeOf
expandInitializer
getConstInitializer
isCTFE
isDataseg
isThreadlocal
needsScopeDtor
Suggestion Box / Bug Report
If variable has a constant expression initializer, get it. Otherwise, return null.