overriding alias symbols
    Superstar64 via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Oct 12 15:14:32 PDT 2016
    
    
  
I'm trying to use mixin templetes to provide generic default 
implementations.
Something like this:
---
abstract class MyAbstractClass
{
     void myAbstractMethod();
}
mixin template defaultImplentation(alias Method, T...)
{
     override void Method()
     {
     }
}
class MyClass : MyAbstractClass
{
     mixin defaultImplentation!(myAbstractMethod);
}
---
Anyone have any ideas?
    
    
More information about the Digitalmars-d-learn
mailing list