[Issue 1528] New: shouldn't templates conflict with templates?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 22 19:44:52 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1528
Summary: shouldn't templates conflict with templates?
Product: D
Version: unspecified
Platform: PC
OS/Version: Windows
Status: NEW
Severity: trivial
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: davidl at 126.com
int[char] v;
char m;
int d;
template toString (U,C,T:U[C])
{
char[] toString(U m,C c, T t) { return ""; }
}
char[] toString(int k){return "";}
The confliction can actually be detected till the last moment of instantiation.
I don't see why we prevent it at the moment.
--
More information about the Digitalmars-d-bugs
mailing list