struct field alignment

BCS none at anon.com
Sun Oct 17 19:22:32 PDT 2010


Hello Denis,

> On some platforms it is desired to align struct Vec { float[4] data; }
> on  16 bytes.

At a guess, that is aligning the structure in memory, not the members in 
the struct. I think the 2nd is the question here.

> Bikeshed note: how about align(C) to be consistent with both align(1)
> and  extern(C)?
> 

vote++;


-- 
... <IXOYE><





More information about the Digitalmars-d mailing list