www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Inheriting from a const class

The following isn't legal D. But should it be...?

   class A
   {
   }

   class B : const(A)
   {
   }

After all, one can have const member variables. Why should "super" be
any different?
Apr 09 2008