Final by default?

Walter Bright newshound2 at digitalmars.com
Thu Mar 13 23:20:57 PDT 2014


On 3/13/2014 8:40 PM, Daniel Murphy wrote:
> "Walter Bright"  wrote in message news:lft8ok$2epl$1 at digitalmars.com...
>
>> Also,
>>
>>      class C { final: ... }
>>
>> achieves final-by-default and it breaks nothing.
>
> No, it doesn't, because it is not usable if C introduces any virtual methods.

That's what the !final storage class is for.



More information about the Digitalmars-d mailing list