This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Mini-patch for cccp.c


Chip Salzenberg          - a.k.a. -           <chip@pobox.com> writes:
>According to Thomas Koenig:
>> To use a char in such circumstances appears to me very, very unclean.

>Your intuition needs training, then.  In C, char is just tinyint.
>Pretending otherwise is foolish.

char is actually a very awkward integer type; you can't even be sure whether
it's signed or unsigned, and it has a lot of additional aliasing baggage
and properties.  We do not recommend that it be used for anything other than
aliasing and characters.  *sigh*.

The best way to bool in C9X will probably be 'bool'.  :)

-s



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]