This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mini-patch for cccp.c
- To: chip at pobox dot com
- Subject: Re: Mini-patch for cccp.c
- From: Lee Iverson <leei at ai dot sri dot com>
- Date: Wed, 01 Oct 1997 12:04:33 -0700
- cc: egcs at cygnus dot com
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