|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.learn - Templated Inheritance
Templates, traits, mixins, and meta programming I haven't really gotten into. But I came to note that templating inheritance of a class works great. http://dsource.org/projects/tutorials/wiki/TemplatedInheritanceExample My question is what others think about the possibility of using traits from D2.0 to allow for interface instantiation without reimplementing methods? I don't know how practical it would be but it might be quite interesting. Mar 02 2008
Jesse Phillips wrote:Templates, traits, mixins, and meta programming I haven't really gotten into. But I came to note that templating inheritance of a class works great. http://dsource.org/projects/tutorials/wiki/TemplatedInheritanceExample My question is what others think about the possibility of using traits from D2.0 to allow for interface instantiation without reimplementing methods? I don't know how practical it would be but it might be quite interesting. Mar 02 2008
|