The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
FlexibleDelegate.opCast
arsd
core
FlexibleDelegate
Use
if(thing)
to check if the delegate is null or not.
struct
FlexibleDelegate
(DelegateType)
static if
(
is(DelegateType FunctionType == delegate)
)
static if
(
is(FunctionType Parameters == __parameters)
)
static if
(
is(DelegateType ReturnType == return)
)
bool
opCast
(
T
:
bool
)
(
)
Meta
Source
See Implementation
arsd
core
FlexibleDelegate
functions
opAssign
opCall
opCast
Use if(thing) to check if the delegate is null or not.