Is C99 the final C?

From: Michael B. (usemike_at_spamblocked.com)
Date: 11/30/03


Date: Sat, 29 Nov 2003 17:19:59 -0800

I was just thinking about this, specifically wondering if there's any
features that the C specification currently lacks, and which may be
included in some future standardization.

Of course, I speak only of features in the spirit of C; something like
object-orientation, though a nice feature, does not belong in C.
Something like being able to #define a #define would be very handy,
though, e.g:

#define DECLARE_FOO(bar) #define FOO_bar_SOMETHING \
        #define FOO_bar_SOMETHING_ELSE

I'm not sure whether the features of cpp are even included in the C
standard though (and GCC has definitely taken quite a nonstandard approach
with regards to certain token expansions and whatnot), but that's one area
of improvement I see.

I would also like to see something along the lines of C++ templating,
except without the really kludgy implementation that the C++ folks decided
to go to ( and without the OOP ).

... Mike pauses for the sound of a thousand *plonks*

Templates save a lot of time when it comes to commonly-used data
structures, and as they are entirely implemented at compile-time and don't
include, by their definition, OOP (although they can be well suited to
it), I think they would be a nice addition and in the spirit of C.

Your thoughts? I'm sure there's some vitriol coming my way but I'm
prepared 8)

-- 
Mike's Patented Blocklist; compile with gcc:
i=0;o(a){printf("%u",i>>8*a&255);if(a){printf(".");o(--a);}}
main(){do{o(3);puts("");}while(++i);}


Relevant Pages

  • Re: Is C99 the final C?
    ... Michael B. wrote: ... > features that the C specification currently lacks, ... > included in some future standardization. ... The apple doesn't fall far from the tree. ...
    (comp.lang.c)
  • Re: Is C99 the final C?
    ... >Michael B. wrote: ... >> features that the C specification currently lacks, ... >> included in some future standardization. ... >fixing things just because they ain't broke? ...
    (comp.lang.c)
  • Re: switching context on MSP430
    ... One thing to watch out for on the'430 is the hardware ... interrupts are disabled around HW multiply operations. ... like to add more features later. ... The principal feature is compile-time configurability. ...
    (comp.arch.embedded)
  • Re: On assembly and portability (between Linux and Windows)
    ... A short note on Object Oriented Programming (OOP). ... Inheritance is the ability to extend data structures by ... Polymorphism is the ability to override an existing ... oriented features. ...
    (alt.lang.asm)
  • Re: Dependency Management (Was: Mixing P/R philosophy with OO)
    ... SP>There are people who really dislike the fact that OOP (Simula) ... variation is *not objectively worse* than use subtyping. ... Subtypes tend to force you to group features. ... uglier and bloatier than a strait P/R solution. ...
    (comp.object)