Why must bitfields sum to a multiple of a byte?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Aug 2 05:38:09 PDT 2012


On 8/2/12 5:26 AM, monarch_dodra wrote:
> One of the *big* reasons I'm against having a hand chosen padding, is
> that the implementation *should* be able to find out what the most
> efficient padding is on the current machine (could be 32 on some, could
> be 64 on some)

In my neck of the woods they call that "non-portability".

If your code is dependent on the machine's characteristics you use 
version() and whatnot.


Andrei


More information about the Digitalmars-d-learn mailing list