Am Tue, 27 Oct 2015 14:00:06 +0000
schrieb Martin Nowak <c...@dawg.eu>:
> On Tuesday, 27 October 2015 at 13:14:36 UTC, wobbles wrote:
> >> How can `coordinates` member be known at compile-time when the
> >> input argument is a run-time string?
> > I suspect through the opDispatch operator overload.
> > http://dlang.org/operatoroverloading.html#dispatch
> Yikes, this is such an anti-pattern.
For my defense I can say that the JSON parser is not a range
and thus less likely to be used in UFCS chains. It can be
replaced with .singleKey!"coordinates"()