__inline__ keyword in 3.0+?

Fergus Henderson fjh@cs.mu.oz.au
Wed Jan 10 22:46:00 GMT 2001


On 11-Jan-2001, Tom Leete <tleete@mountain.net> wrote:
> It's too bad the C99 committee devised an inline which conflicts with both
> gcc and iso C++.

There are legitimate reasons for that.
GNU C's `extern inline' requires unfortunate complications if you
are to avoid source code duplication.  C99's inline avoids that.
C++'s inline requires a more sophisticated linker model, and the
C99 committee didn't want to require C implementations to support that.

It might have been nicer if C99 had used a different keyword, I suppose,
but `inline' is the obvious one.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh >  |     -- the last words of T. S. Garp.


More information about the Gcc mailing list