Shape.opDispatch

Dispatches operations common to all shapes.

struct Shape(T)
opDispatch
(
string s
T...
)
()
if (
is(typeof(mixin ("point ." ~ s ~ "(args)"))) &&
is(typeof(mixin ("rect ." ~ s ~ "(args)")))
&&
is(typeof(mixin ("circle." ~ s ~ "(args)")))
)

Meta