Le 04/01/11 22:31, Walter Banks a écrit :
What next?
Drop floating point from embedded systems?
What about integer sizes? This was a battle won and lost creating
size specific integers in C99.
You can look at the language core and start from that side with
the essential C features.
Basic syntax.
Operator precedence
. . .
after the obvious list, again it is a series of tough choices.
There are a lot of C users here.
What is the core of the language that must be available, remembering that C is used in many contexts?
Regards,
Why not do what the so often cited n1395 proposed?
Define a subset of C that is a new language subset
in a new document, called CSI as they propose
(Conforming Subset Implementation) without
floating point.
That would mean dropping complex and tgmath.h and most math functions
from the math library, dropping some formats from the printf
specifications and other library changes probably.
THAT was the proposal from the Netherlands committee, NOT to change
the whole language dropping most of C99 and dooming C to just a
niche language for micro controllers.
OK, your company makes money with that kind of stuff. It is OK.
But maybe you acknowledge that there are OTHER companies that
make money in OTHER kinds of environments?
Why do you want to ignore any other uses of C?
Why coudn't you propose a subset of C consisting of:
Standard language except the types
float, double, long double
and all associated stuff: math.h and stdio that use double,
complex, and tgmath.h, etc.
THAT would be a REAL progress, i.e. define a non-floating point
subset of C for micro-controllers and very small machines that
does not use floating point. The long long type would be optional,
with short 16, int 16 or 32, and long 32.
That is a feasible language where you can do a LOT of stuff.
But WHY PUT ALL OTHER users of C out of the loop?
Why destroy the C99 standard?
Just think about it for a while. You feel that the standard did not
follow your needs. Why should NOW everyone else follow YOUR needs?