Re: C is too old? opinions?
- From: Eric Sosman <esosman@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Sep 2007 22:41:15 -0400
jacob navia wrote:
Richard wrote:Tor Rustad <tor_rustad@xxxxxxxxxxx> writes:
jacob navia wrote:Charlie Gordon wrote:[...]
Chapter and verse please.#ifdef ZIPCLONE_LIB_COMPRESS_HUFFMAN_HWhy not
#define ZIPCLONE_LIB_COMPRESS_HUFFMAN_H
...
#endif
The scheme leaves little room for collisions and can be automated too.
#pragma once
The book of common sense when using well known compilers, page 1.
It is an answer to problems people might have in C. And good advice
too. If your C *must* be 100% standard compatible amongst ALL compilers
then clearly not. But for a LOT of people using many compilers very
useful to know.
Good advice Jacob.
It is supported by
1) MSVC (windows)
2) Intel compiler
2) Comeau C/C++ (Unix and windows)
3) Digital Mars C/C++ (Unix+Windows I think)
4) gcc (versions later than 3.4) (Unix)
5) lcc-win32 (Windows)
6) Delorie C/C++ (MSDOS)
7) MIPS PRO C/C++ (SGI)
8) Code Warrior (MacIntosh version)
9) Digital C++ (Unix)
10) MPW C compiler (Macintosh)
11) The Watcom compiler
Now let's see the list of compilers with 16-bit ints,
the list of compilers that support `void main()', the list
of compilers where `long' and `int' have the same range,
the list of compilers where converting a pointer to an `int'
and back does no harm, the list of compilers that allocate
unrelated `static' variables in adjacent cells in the order
declared, ...
You can generate lists of this kind for pretty much any
feature. The list of left-handed people is long; does that
mean it's wise to assume the next person you meet will be
left-handed?
--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: C is too old? opinions?
- From: Kenny McCormack
- Re: C is too old? opinions?
- References:
- Re: C is too old? opinions?
- From: Jack Klein
- Re: C is too old? opinions?
- From: pete
- Re: C is too old? opinions?
- From: Keith Thompson
- Re: C is too old? opinions?
- From: Charlie Gordon
- Re: C is too old? opinions?
- From: jacob navia
- Re: C is too old? opinions?
- From: Tor Rustad
- Re: C is too old? opinions?
- From: Richard
- Re: C is too old? opinions?
- From: jacob navia
- Re: C is too old? opinions?
- Prev by Date: Re: address of function's return value
- Next by Date: Re: address of function's return value
- Previous by thread: Re: C is too old? opinions?
- Next by thread: Re: C is too old? opinions?
- Index(es):
Relevant Pages
|
Loading