[Issue 1856] Outstanding template issues

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 26 10:51:19 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1856





------- Comment #3 from wbaxter at gmail.com  2008-02-26 12:51 -------
I just noticed that function-vs-template overloading was one of the items
mentioned in WalterAndrei.pdf.

However, there it says "the function is not preferred over the template" so
that means this would be an error?

  void foo(int i);
  void foo(T)(T i);

That doesn't seem so good.  Why not treat functions like specializations?


-- 



More information about the Digitalmars-d-bugs mailing list