int always 32 bits on all platforms?

BCS none at anon.com
Wed Oct 21 16:00:41 PDT 2009


Hello Jason,

> In D, both type size and alignment have the same defaults on all
> platforms. If desired, alignment can be explicitly controlled with the
> align attribute. Similarly, use of specific types control sizes.
> 

Ummm? IIRC, struct alignment follows the lead of the "native compiler" for 
the given system. That is, type size issues aside, structs without align 
directive can be passed from C to D by default.





More information about the Digitalmars-d mailing list