[Issue 5067] New: no way to re-parameter a template a class when in some special scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 16 22:36:58 PDT 2010
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: nobody at puremagic.com
ReportedBy: galaxylang at gmail.com
--- Comment #0 from galaxylang <galaxylang at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list