At about the time of 4/10/2007 2:37 PM, jacob navia stated the following:
Daniel Rudy a écrit :
Yes. If you tell gcc not to use the current standard but some other old
one it will not accept standard syntax.
WOW, how clever you are.
Considering that gcc's default is gnu99, which is some c99 with gnu
extensions, that's not really considered standard C either.
I am speaking about standard C. Nobody forces you to use anything
and if you do not like standrad C I do not care. But I do not want
to allow that you pass YOUR preferences as standard C. They are not.
You are speaking about a C standard that current compilers only
partially support. C89/C90 is the standard that is supported by most,
if not all current compilers. Since C99 support is hit and miss at
best, people are better off coding to C89/C90.
Great!!!
But that is not standard C. Clear?
Yes, it is standard C. It's the current conforming standard that is
fully supported by most if not all current compilers. I don't know of
any C compiler that fully supports C99 standard. So what's the point of
calling something a standard when nothing supports it...or partially
supports it?
So, you use the feature set that the compiler supports, and then if you
change C compilers for some reason. Guess what? If your new compiler
doesn't at least support the same feature set that the old one does,
your code doesn't compile.
Until compilers catch up to fully implementing C99, C89/C90 *is* the
current standard, regardless of what you might think. Show me a C
compiler that is fully C99 compilant (coding and libs) then I'll believe
you.
Gcc is at the cutting edge of compiler development, then not even it is
fully C99 compliant. Even Microsoft's C compiler isn't fully compliant.
--
Daniel Rudy
Email address has been base64 encoded to reduce spam
Decode email address using b64decode or uudecode -m
Why geeks like computers: look chat date touch grep make unzip
strip view finger mount fcsk more fcsk yes spray umount sleep