digitalmars.D.bugs - [Issue 5067] New: no way to re-parameter a template a class when in some special scope
- d-bugmail puremagic.com (35/35) Oct 16 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5067
- d-bugmail puremagic.com (20/20) Oct 16 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5067
- d-bugmail puremagic.com (9/9) Nov 04 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5067
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 puremagic.com ReportedBy: galaxylang gmail.com --- //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: -------
Oct 16 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5067 --- there are some different?i am not sure class A(alias T) { } and class B(T) { } //i think if there are different,can be solve the question i mentioned class D(P):A!D //base class is a type of A!(D),D is a symbol { } class D(P):B!D //base class instance is a type of B!(D!(P)) { } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 16 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5067 galaxylang <galaxylang gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 04 2010