digitalmars.dip.ideas - named varargs hack
- monkyyy (14/14) Jun 25 named arguments jumping to templates seems to be happening
named arguments jumping to templates seems to be happening slowly, I mostly just want the details and ill make my own matching machinery ```d namedseq!(a:int,bool,f:float); template namedseq(T....){//4 dots alias names=T.names;//["a","","f"] alias types=T.types;//(int,bool,float) } ``` theres 3 cases I see mattering: plain template `template foo(T....)` manual template function `template foo(T....){ void foo(T args)` template `void foo(T....)(T args)`
Jun 25