vibe.d beta banner
get vibe.d
0.10.0

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

TaggedAlgebraic.opDispatch.opDispatch - multiple declarations

Function TaggedAlgebraic.opDispatch.opDispatch

Enables the invocation of methods of the stored value.

ref auto opDispatch(TA, ARGS...) (
  auto ref ARGS args
)
if (hasOp!(TA, OpKind.method, name, ARGS));

Function TaggedAlgebraic.opDispatch.opDispatch

Enables accessing properties/fields of the stored value.

ref auto opDispatch(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.