vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

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));
Authors

Sönke Ludwig

Copyright

Copyright 2015-2019, Sönke Ludwig.

License

www.boost.org/LICENSE_1_0.txt, Boost License 1.0.