Andrew Brown atatat at
Wed Jul 28 05:14:44 UTC 2004

On Wed, Jul 28, 2004 at 06:01:43AM +0100, Clive D.W. Feather wrote:
>Andrew Brown said:
>> my copy of k&r (2ed) says, in brief:
>>     + short and long are intended (but not required) to be different
>>       lengths
>>     + int will be the "natural size" for a machine
>>     + shorts and ints are at least 16 bits
>>     + longs are at least 32 bits
>>     + sizeof(short) <= sizeof(int) <= sizeof(long)
>> therefore, int could be 128 bits if you liked, but long would have to
>> be at least as many, while short could only be at most as many.  and
>> that's it.
>K&R isn't the Standard, and sometimes simplifies. However, your conclusions
>here are correct.

true, but the second edition has the ansi stamp on it, and afaik
there's no third edition.  i have a c9x draft somewhere around but the
last time i looked, it was more than twice as large as the k&r book i
have and at most half as readable.  i doubt that particular aspect of
the language was changed, though.

|-----< "CODE WARRIOR" >-----|
codewarrior at             * "ah!  i see you have the internet
twofsonet at (Andrew Brown)                that goes *ping*!"
werdna at       * "information is power -- share the wealth."

More information about the tz mailing list