Struct Inheritance (not concept interfaces)

Sclytrack sclytrack at pi.be
Tue Mar 11 03:13:55 PDT 2008


With struct inheritance I mean the following and not the "concept interfaces".

struct Base
{
  void doStuff()
  {
  }
}

struct Derived
{
  inherit Base base;
}


  Derived d;
  d.doStuff();


Sort of like having a compile time inheritance, with its limitations.



More information about the Digitalmars-d mailing list