On Wed, Jul 03, 2013 at 10:10:08PM +0200, Artur Skawina wrote: > On 07/03/13 21:02, H. S. Teoh wrote: > > On Wed, Jul 03, 2013 at 06:52:56PM +0200, Artur Skawina wrote: > >> void main() > >> { > >> auto b = pickOverload!(foo, long); > > > > Now *that's* what I call coolness. Self-documenting and convenient > > to use (though in this case it's arguable whether it's actually > > better than native syntax). > > At some point somebody is going to ask for > > auto b = foo.pickOverload!(long) > > with a better name for 'pickOverload'. :) > > > Which actually is possible, but would need sane optional-() and > UFCS models. Ie not right now. [...]
I don't think UFCS applies to compile-time arguments? So this wouldn't work. T -- There's light at the end of the tunnel. It's the oncoming train.