Named arguments via struct initialization in functions

Michael Coulombe via Digitalmars-d digitalmars-d at puremagic.com
Wed Mar 9 21:24:24 PST 2016


On Thursday, 10 March 2016 at 05:17:03 UTC, Michael Coulombe 
wrote:
> [...]

Whoops, forgot this:

private immutable struct KeyWordDollar {
     @property
     auto opDispatch(string param, T)(T t) {
         return Named!(param,T)(t);
     }
}


More information about the Digitalmars-d mailing list