Jump to content

Talk:Inline function

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 86.130.81.171 (talk) at 11:49, 26 June 2008 (most used?: In defence of C89). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

"in-line" vs. "inline"

The article seems inconsistent in the usage. Is there any diference between the two? Is 'inline' an adjective and 'in-line' a verb? I'll clean it up if I find out the rule.

They seem to be used interchangably. In certain contexts, such as "inline function", one spelling tends to prevail. The "in-line" spelling is somewhat older and more traditional. Most of the time "inline" is fine and understandable in just about any place. I don't know any hard and fast rule, and I don't think the part-of-speech one is true. Maybe someone else can shed more light on it. Derrick Coetzee 21:46, 26 Oct 2004 (UTC)
The language keywords in both C++ and C99 are "inline", and personally I encounter "inline" much more often than I do "in-line". Although of course that's not definitive evidence, I'd vote for using "inline" consistently. Neilc 08:17, 28 May 2005 (UTC)[reply]
no --Windymager 18:10, 3 December 2006 (UTC)[reply]

most used?

C++, C99, and GNU C each have support for inline functions, although 1989 ANSI C, the dialect of C most commonly used in practice, does not.

I doubt the bold statement of ansi being more used in practice, to be true. I see no reference and thus propose to eliminate it. 217.140.108.2 10:48, 14 September 2007 (UTC)[reply]

Well, C++ is not a C dialect so we can remove that from the equation straight away. We then have C89, C99 and GNU C. There are very few fully conforming C99 compilers out there - they are still mainly 'C89+'. The GNU extensions do receive some use on Unix, but less so on other platforms. Even on Unix many coders/management policies are unwilling to use them since GCC is far from universal even on Unix. The impression I have is that C89 still leads by a mile. Put it another way: what dialect do you think is more prevalent? 86.130.81.171 (talk) 11:49, 26 June 2008 (UTC)[reply]