On Thursday, 25 December 2014 at 16:02:48 UTC, Danny wrote:
Tobias: Thanks! Your version works. But now it's read-only.
Make the opDispatch function return ref and then you can write to
it.
Alternatively, write a second setter opDispatch overload:
T opDispatch(string name, T)(T rhs) {
return mixin("value." ~ name ~ " = rhs");
}
