Re: C is too old? opinions?



jacob navia wrote:
Richard wrote:
Tor Rustad <tor_rustad@xxxxxxxxxxx> writes:

jacob navia wrote:
Charlie Gordon wrote:
[...]

#ifdef ZIPCLONE_LIB_COMPRESS_HUFFMAN_H
#define ZIPCLONE_LIB_COMPRESS_HUFFMAN_H
...
#endif

The scheme leaves little room for collisions and can be automated too.

Why not

#pragma once
Chapter and verse please.

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
.



Relevant Pages

  • Re: asm
    ... > commands for different compilers? ... > commands that are available for NASM, for HLA, MASM, ... I'll recompile the lists and set them up on a ... If you're mainly interested in the instruction set, ...
    (comp.lang.asm.x86)
  • Re: Old GCC
    ... On Sat, 2005-01-22 at 18:27 -0500, Steven Pasternak wrote: ... I just want to produce rpms that will work on my fedora system and my ... you use to build the "ancient" compilers you mention. ... and subscribe to the following lists: ...
    (Fedora)
  • Re: C is too old? opinions?
    ... the list of compilers that support `void main', ... the list of compilers where converting a pointer to an `int' ... You can generate lists of this kind for pretty much any ... obscure compilers. ...
    (comp.lang.c)
  • Re: asm
    ... > commands for different compilers? ... > commands that are available for NASM, for HLA, MASM, ... I'll recompile the lists and set them up on a ... help file for your word processor. ...
    (comp.lang.asm.x86)
  • Re: overloading in C
    ... > jacob navia wrote: ... Operator overloading, IMHO is one of the nicer features of C++, allthough it ... OTOH, almost any language feature ... compilers has my full admiration. ...
    (comp.lang.c)

Loading