Re: Simplicity has a future
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Wed, 31 May 2006 21:47:01 +1200
Richard Heathfield wrote:
Ian Collins said:No, but I still find it amusing that the example can't be compiled as
Richard Heathfield wrote:
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?
(current) standard C. There must be some humour in that somewhere.
Never use it. I use Sun Studio, which is approaching C99 conformance.
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.)
The Solaris headers have also migrated to C99.
Neither of the compliers I have will compile it, gcc or Studio. Studio
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.
barfs over asm.
--
Ian Collins.
.
- Follow-Ups:
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- References:
- Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: Keith Thompson
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Harald van Dijk
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Ian Collins
- Re: Simplicity has a future
- From: Richard Heathfield
- Simplicity has a future
- Prev by Date: Re: malloc() implementation
- Next by Date: Re: Simplicity has a future
- Previous by thread: Re: Simplicity has a future
- Next by thread: Re: Simplicity has a future
- Index(es):
Relevant Pages
|