[...] if I wanted someone to design a library of safe
functions for me, Microsoft wouldn't exactly leap to mind as my first
choice.
I wish I could be sure the ISO C committee would be of the same mind.
I was never happy about it.
You make it sound like it's already happened. Does this mean C is going
to get weighed down with a lot of Microjunk?
Yes. I argued against it from the outset over 5 years ago The Safe(r)
C/ Secure / etc lib proposal is a clever move. There is also one for
C++ Again largely put about by MS. The problem is that although it is
"only a TR" as MS keep pointing out "TRs invariably become part of the
standard" even is these don't the effect is the same dor the vast
majority of desktop programmers.
This means that [marketing speak] the MS C and C++ libraries are The
Standard for safe programming .... MS is leading the way etc.
Anyone who does not implement the Safe/secure libs in the TR can not
really be serious.... MS has of course already got them implemented.
MS is also going via ECMA to push the C++/CLI standard on a fast track
through ISO this has been stopped once but I fear in reality it is too
late.
C99 was bad enough. How much damage do you think the language can stand
before it breaks under its own weight?
Too late it has happened.
However there is already discussion in some parts of the ISO C panel to
REMOVE parts of C99!! Yes the penny has finally dropped that too much
was added for small pressure groups and a lot has not been implemented
nor is ever likely to be by the majority...
We are now 9 years since the release and there is no sign that any time
soon the majority of the compiler vendors will do more than a partial
implementation.
In fact 4 years ago a group in the UK of which I was one and some of
whom were on the UK C panel, looked at cutting back C99 but we did not
have the time or resources to do it. We all had real lives and jobs to
do.
Now the main ISO C panel has woken up to the fact that C99 is not being
implemented in any seriousness by anyone. In fact as predicted about 5
years ago by Derek Jones the GCC standard (but NOT the compilers) would
become the major de-facto C standard.
A real mess. I can see there being several groups.
1 MS/desktop "C/C++" (I know c/c++ is not a real language
Using the
secure/safer libraries etc for the vast majority of desktop users and
"embedded XP users" Shirley an oxymoron. This will be "Standard C"
because they have God/Satan on their side depending on your viewpoint.
Also all the lawyers and marketing.
2 Embedded C (based around C95) for the vast majority of non desktop
users and will be called "C-like" by the pedants and C by embedded
users.
3 Gcc Users who will use Gcc syntax come hell or high water who don't
care what anyone else calls it because they have god on their side.
4 ISO C used by virtually no one. (Where then for Clc? )
Remember ISO BASIC....... that died after a similar onslaught by
VisualBasic.
I fear Standard ISO C will go the same way.
Does it matter if it does?
I have to look at this is some seriousness as we are gearing up to start
MISRA-C-3. Thus far we have been C90+A1+TC1+TC2 based..... we have been
contemplating moving to C99 but..... it is all a moving target.
Regards
Chris