April 09, 2008 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?
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply