opDispatch.opDispatch

Enables accessing properties/fields of the stored value.

  1. auto ref opDispatch(ARGS args)
  2. ARGS opDispatch [@property setter]
    template opDispatch(string name)
    @property ref
    opDispatch
    (
    this TA
    ARGS...
    )
    (
    auto ref ARGS args
    )
    if (
    hasOp!(TA, OpKind.field, name, ARGS) &&
    !hasOp!(TA, OpKind.method, name, ARGS)
    )
    if (
    hasAnyMember!(TaggedAlgebraic, name)
    )

Meta