virtual-by-default rant

deadalnix deadalnix at gmail.com
Sun Mar 18 09:15:40 PDT 2012


Le 18/03/2012 17:02, Martin Nowak a écrit :
>>> This is so much theoretical that I think this should be removed from
>>> the D docs. And to be put back when one DMD compiler is able to do
>>> this. Otherwise it's just false advertising :-)
>>
>> Is this even possible without LTO/WPO? Extending a class defined in a
>> library you link in (and for which codegen already happened) is
>> certainly possible…
>>
>> David
>
> This is not even possible with LTO because new classes
> could be loaded at runtime.
> Could somebody please fix this.

That is limited to export classes. In this case, final/virtual should be 
managed very precisely anyway if performance matter.


More information about the Digitalmars-d mailing list