<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 31 March 2014 18:18, 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="">On 3/30/2014 7:10 PM, Manu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
On 31 March 2014 11:39, bearophile <<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.com</a><br></div><div class="">
<mailto:<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.<u></u>com</a>>> wrote:<br>
<br>
    Manu:<br>
<br>
<br>
        The most annoying thing about a hidden vtable pointer is it breaks<br>
        alignment.<br>
<br>
<br>
    D class instances have two hidden fields.<br>
<br>
<br></div><div class="">
Oh yeah... well that loses a lot of appeal from me in that case ;)<br>
</div></blockquote>
<br>
On 64 bits, the two fields means the rest starts at 16 byte alignment - ideal for SIMD!<br>
</blockquote></div><br></div><div class="gmail_extra">Most computers aren't 64bit though. The fact that the pointers change in size between platforms is a huge nuisance. I often find I end up with some very annoying #ifdef's at the start of tightly packed classes to deal with this issue in C++.</div>
</div>