http://d.puremagic.com/issues/show_bug.cgi?id=5067
Summary: no way to re-parameter a template a class when in some
special scope
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from galaxylang <[email protected]> 2010-10-16 22:36:22 PDT
---
//no way to re-parameter a template a class when in some special scope
class base(alias D)
{
alias D!(int) special ;//error,D is not a template class
//so function like this can't pass complie
auto change(T:long)()
{
return new special();//for example change devide!int to devide!long
}
}
class devide(T:int):base!(devide)
//i think maybe because here: devide = devide!(T)
{
}
int main(char[][])
{
return 0;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------