final?
Deewiant
deewiant.doesnotlike.spam at gmail.com
Fri May 25 06:28:09 PDT 2007
Jan Hanselaer wrote:
> 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?
>
Are you using a recent version of DMD? It was a bug (
http://d.puremagic.com/issues/show_bug.cgi?id=558 ) until DMD 1.011, and I can
confirm that it works in 1.014.
--
Remove ".doesnotlike.spam" from the mail address.
More information about the Digitalmars-d
mailing list