TaggedAlgebraic.opDispatch - multiple declarations
Function TaggedAlgebraic.opDispatch
Enables the invocation of methods of the stored value.
auto opDispatch(string name, TA, ARGS...)
(
auto ref ARGS args
)
if (hasOp!(TA, OpKind .method, name, ARGS));
Function TaggedAlgebraic.opDispatch
Enables accessing properties/fields of the stored value.
auto opDispatch(string name, TA, ARGS...)
(
auto ref ARGS args
) @property
if (hasOp!(TA, OpKind .field, name, ARGS) && !hasOp!(TA, OpKind .method, name, ARGS));