[OT] My C++ talk at GoingNative 2013

Iain Buclaw ibuclaw at ubuntu.com
Tue Sep 10 06:02:08 PDT 2013


On 10 September 2013 13:54, Olivier Grant <olivier.grant at gmail.com> wrote:
> First of all, I very much enjoyed the talk. It was as interesting as it was
> entertaining.
>
> I do have a question regarding the talk's section on devirtualization. As a
> language that imposes virtual methods for classes, how well does D play when
> it comes to devirtualization? And on a side note, does D have a different
> way of implementing virtual methods than most C++ compilers do?
>

All class methods are virtual by default in D, unless declared 'final'.

Devirtualisation is not something done by the front-end, but recent
updates and interest from compiler back-ends may provide a solution.

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d-announce mailing list