On Wednesday, 20 August 2014 at 06:11:42 UTC, blake kim wrote:
But I don't think this is right. Many C APIs need structure as argument and adjusting align each structure doesn't make sense.Is this problem a Bug of D ?
Default alignment in D is pointersize (size_t) - so 8 on 64bit. But most C compilers default to 4 regardless of pointersize. I think this is more a bug in C than in D.
