virtual-by-default rant

David Nadlinger see at klickverbot.at
Sun Mar 18 09:50:52 PDT 2012


On Sunday, 18 March 2012 at 16:02:04 UTC, Martin Nowak wrote:
>> 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.

Sure, you can't just devirtualize everything you come across even 
with LTO, but it greatly increases the portion of calls where you 
can deduce the actual type of an instance.

David



More information about the Digitalmars-d mailing list