Final by default?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Mar 13 13:52:33 PDT 2014


On 3/13/14, 1:42 PM, Dmitry Olshansky wrote:
> 14-Mar-2014 00:24, Vladimir Panteleev пишет:
>> On Thursday, 13 March 2014 at 19:38:20 UTC, Dmitry Olshansky wrote:
>>> Not the same as `final:` inside - the above just means you can't
>>> inherit from A. Funnily enough any new methods in A would still be
>>> virtual even if nothing can inherit from it!
>>
>> This should have been fixed years ago:
>> https://d.puremagic.com/issues/show_bug.cgi?id=2326
>>
>> Is it a regression?
>
> I stand corrected. I double checked and indeed compiler produces direct
> calls.

My other question stands :o).

Andrei



More information about the Digitalmars-d mailing list