On Wed, May 28, 2008 at 2:04 PM, John Matthews <[EMAIL PROTECTED]> wrote: > --- In [email protected], Thomas Hruska <[EMAIL PROTECTED]> wrote: >> >> One of the things I really dislike about the ANSI C/C++ Standard is > that >> there is no way to define your own data types in bits. You could use a >> struct bitfield but you are still limited to the maximum int size for >> the compiler (e.g. you can't simply declare a 1726-bit integer). > > I don't know about C++, but perhaps that wouldn't really fit into the > low-ish level nature of C?
For _practically_ using C at a low level, it is usually required to have set-width data types. Memory mapping, ntoh*(), hton*() etc. Bitfields are not a viable solution. -- PJH http://shabbleland.myminicity.com/env
