final?

Jan Hanselaer jan.hanselaer at gmail.com
Fri May 25 06:41:22 PDT 2007


"Deewiant" <deewiant.doesnotlike.spam at gmail.com> schreef in bericht 
news:f36o9m$rt1$1 at digitalmars.com...
> 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.

I was using version 1.010 ... Downloade 1.014 an you're right ... it's 
solved there.

Thanks! 





More information about the Digitalmars-d mailing list