C2 forum

General Category => Ideas => Topic started by: kyle on June 20, 2014, 09:26:22 PM

Title: Weird ideas #4: standard bit fields etc.
Post by: kyle on June 20, 2014, 09:26:22 PM
Currently, the ordering and some of the semantics of bitfields appear to be implementation dependent.  It would be nice if C2 specified the exact ordering of bit fields and their behavior on all platforms. 

This comes from a discussion I started on LinkedIn in the "Plain Old C Programming" group.  Chris Ryan pointed out the problems with bit fields. 

Best,
Kyle