What would be the consequence of implementing interfaces as fat pointers ?

Walter Bright newshound2 at digitalmars.com
Mon Mar 31 01:18:08 PDT 2014


On 3/30/2014 7:10 PM, Manu wrote:
> On 31 March 2014 11:39, bearophile <bearophileHUGS at lycos.com
> <mailto:bearophileHUGS at lycos.com>> wrote:
>
>     Manu:
>
>
>         The most annoying thing about a hidden vtable pointer is it breaks
>         alignment.
>
>
>     D class instances have two hidden fields.
>
>
> Oh yeah... well that loses a lot of appeal from me in that case ;)

On 64 bits, the two fields means the rest starts at 16 byte alignment - ideal 
for SIMD!


More information about the Digitalmars-d mailing list