Inheriting from a const class

Janice Caron caron800 at googlemail.com
Wed Apr 9 00:55:54 PDT 2008


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?



More information about the Digitalmars-d mailing list