[Issue 3910] New: Explicit template instantiations for functions used as array properties?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 9 00:40:13 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3910
Summary: Explicit template instantiations for functions used as
array properties?
Product: D
Version: 2.041
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: biozic at free.fr
--- Comment #0 from biozic <biozic at free.fr> 2010-03-09 00:40:11 PST ---
Shouldn't the last line of the following code compile?
---
void foo(T)(T[] array) {}
void main()
{
int[] a = [1, 2, 3];
foo(a); // OK
foo!int(a); // OK
a.foo(); // OK
//a.foo!int(); // Error: foo(a) isn't a template
}
---
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list