On Thursday, 19 September 2013 at 17:10:43 UTC, Andrei Alexandrescu wrote: > Any ideas for a clean solution? I can't get much further than > string mixins, which wouldn't be clean :o). opDispatch comes to mind. You'd only need two of them, one marked static and the other one not.