Can the D compiler detect final and optimize?

Gregor Mückl gregormueckl at gmx.de
Sun Dec 27 06:51:25 UTC 2020


On Friday, 25 December 2020 at 19:29:26 UTC, Daniel Kozak wrote:
> On Fri, Mar 13, 2020 at 5:15 PM Dennis via Digitalmars-d < 
> digitalmars-d at puremagic.com> wrote:
>
>> [...]
>>
>
> I believe LTO could do that in some cases

If LTO devirtualizes, then there is the implicit assumption that 
there is additional code load at runtime, right? So this breaks 
potentially if you e.g. use dlopen() to load a plugin?


More information about the Digitalmars-d mailing list