[Issue 415] New: conflicting template functions overloads
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 9 08:09:10 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=415
Summary: conflicting template functions overloads
Product: D
Version: 0.169
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: benoit at tionex.de
void arraycopy( T )( T[] src, T[] trg, int length ){
}
void main(){
char[] a, b;
arraycopy( a, b, 1 ); //(1)
arraycopy( a, b, a.length ); //(2)
}
I don't want to change the main() content:
(2) causes an error because length is uint.
if I change the signature of arraycopy to "( T[], T[], uint)", (1) causes an
error.
If I supply both variations, they conflict. They should not.
--
More information about the Digitalmars-d-bugs
mailing list