visibility vs. accessibility of protected symbols

Timon Gehr timon.gehr at gmx.ch
Mon Feb 13 17:17:13 PST 2012


On 02/14/2012 01:55 AM, Timon Gehr wrote:
>
> There are no performance implications because the compiler has the whole
> module ready to analyse. Therefore it can de-virtualise any calls to
> private members that are never overridden. A trivial addition to the
> class layout could furthermore allow the compiler to remove the vtable
> entry for such a member function entirely (essentially, virtual private
> members would get negative vtable offsets). I actually think that should
> be implemented in order to get a potential TDPL error off the table.
>

Nevermind, separate compilation could get tricky.


More information about the Digitalmars-d mailing list