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


In message <199710011636.MAA12811@rio.atlantic.net> you write:
> 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.

Hmmm...  Perhaps your otherwise razor-sharp intuition needs a little
honing Chip.  As far as bools go, you're right, there's not much to
choose between char and int except for the fact that on some machines
memory loads and stores of individual chars may be significantly
slower than ints.

But one must always remember that char may be either a signed or
unsigned quantity, depending on the implementation. In this case a
char is definitely *not* tinyint!

-------------------------------------------------------------------------------
Lee Iverson     		SRI International
leei@ai.sri.com			333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/	(650) 859-3307


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