Re: Simplicity has a future



Richard Heathfield wrote:
I'll take the hit on the splice, which is trivially fixable. 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++.

I'm sure I could turn my C99 compiler back to C90, but why bother?
Maybe if you can explain the usefulness to mankind of the code, I might
give it a go....

--
Ian Collins.
.



Relevant Pages

  • Re: gcc 4.3: when will it become standard compiler?
    ... But I'm not exactly sure what you mean by "compile world with C99". ... In fact default mode of GCC accepts many C99 constructs like // comments and mixed declarations and code, which are not valid C89. ... my point is that in C89 mode *restrict* got expanded ...
    (freebsd-current)
  • Re: Defining int64
    ... will fail to compile on such an implementation; ... attempting to port it will at least be ade aware of the trouble. ... is mandated by C99 but was absent from C90, ... support for `long long' in things like printfmay not ...
    (comp.lang.c)
  • Re: gcc 4.3: when will it become standard compiler?
    ... change your system compiler like you change underwear. ... But I'm not exactly sure what you mean by "compile world with C99". ... in our world because of this (I found same assert() related stuff) etc. ...
    (freebsd-current)
  • Re: Address syntax
    ... I found one key difference between the C89/C90 and C99 that must be at ... could compile it without any problems. ... This is an exact equivalent of the previous declaration. ... Did you mean 'struct o arg'? ...
    (comp.lang.c)
  • Re: Listing the most dangerous parts of C
    ... still compile without error, ... will have a "C89" compatibility mode, people maintaining pre-C99 code will continue to use it. ... compilers will continue to have a C89 mode for a long time after they implement C99. ...
    (comp.lang.c)