Eliminating code duplication for static/nonstatic functions

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Sep 19 10:20:52 PDT 2013


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.


More information about the Digitalmars-d mailing list