This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __inline__ keyword in 3.0+?
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.