Re: Simplicity has a future



Ian Collins said:

Richard Heathfield wrote:
I'll take the hit on the splice, which is trivially fixable.

(Withdrawn. That was a misreading of my own code.)

The others
are only errors in C99, which doesn't count.

Hang on a minute, you're posting code that won't compile as C99 and
asking the audience to convert it to C++? Given your original rules, it
can't be morphed to C99, let alone C++.

The claim I was addressing, which was originally made by Tomas, is that "I
can copy-paste your C code and compile it as C++". Are you claiming that
C90 code is not C code unless it is also C99 code?

I'm sure I could turn my C99 compiler back to C90, but why bother?

Which C99 compiler are you using? If the answer is "gcc", why bother to
claim that you have a C99 compiler? (gcc is /not/ a conforming C99
compiler.)

Maybe if you can explain the usefulness to mankind of the code, I might
give it a go....

Like much code posted here, its usefulness to mankind is that it illustrates
a point about the language. In this case, the point is that the claim "I
can copy-paste your C code and compile it as C++" is demonstrably false.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages

  • Re: Requesting advice how to clean up C code for validating string represents integer
    ... Or whatever the GNU C compiler uses when the -ansi switch is turned ... -ansi Support all ANSI standard C programs. ... Please tell me whether GNU C MAN pages are referring to C99 or what? ...
    (comp.lang.c)
  • Re: Storgae durations
    ... whether C99 is the "current" standard depends on what ... gcc is *close* to being a C99 compiler, but it isn't actually there yet. ... That's precisely what "conforming" means. ... The function won't always invoke undefined behavior, ...
    (comp.lang.c)
  • Re: const array declaration
    ... [I snipped some gcc diagnostics from a previous poster here] ... outside the C code changes it, so that the compiler cannot simply ... "b" are thus not at all constants, but C99 accepts this, just as ... In C89, all aggregate initializers ...
    (comp.lang.c)
  • Re: good c compiler
    ... Language accepted is C99. ... I take it, then, that you accept that lcc-win32 does not conform to any ISO ... and is therefore not really a C compiler. ...
    (comp.lang.c)
  • Re: Is C99 the final C? (some suggestions)
    ... The Intel C compiler claims to also support C99, ... The Pelles C compiler for Windows and Pocket PC claims C99 support. ...
    (comp.lang.c)