final?

Jan Hanselaer jan.hanselaer at gmail.com
Fri May 25 06:12:59 PDT 2007


Hi

In the documentation about classses http://www.digitalmars.com/d/class.html

I read :
Final classes cannot be subclassed:
final class A { }
class B : A { }  // error, class A is final


But when I try to compile it, theres no error. Seems quite unusual to me.
Is this a bug?


Jan







More information about the Digitalmars-d mailing list