<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 7 December 2013 08:52, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 12/6/2013 2:40 PM, bearophile wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And when a D compiler because of separate compilation can't de-virtualize a virtual class method call.<br></blockquote>
</div><div class="im">
<br></div>
Can C devirtualize function calls? Nope.<br></blockquote><div><br></div><div>Assuming a comparison to C++, you know perfectly well that D has a severe disadvantage. Unless people micro-manage final (I've never seen anyone do this to date), then classes will have significantly inferior performance to C++.</div>
<div>C++ coders don't write virtual on everything. Especially not trivial accessors which must be inlined.</div></div></div></div>