Template functions, can we make it more simple?
Suliman
evermind at live.ru
Fri Aug 2 23:43:21 PDT 2013
> I've brought this up on here awhile ago, and many people seemed
> to be against it. Which I don't agree with, since the
> ambiguities it creates are easily addressed (from a design
> perspective at least) and only exist so that C-style code is
> usable within D. It could work like:
>
> auto func(a, b) // auto func(A, B)(A a, B b)
> auto func(int a, b) // auto func(B)(int a, B b)
> auto func(int ?) // C-style: auto func(int)
I like it!
More information about the Digitalmars-d
mailing list