definition of "implicit" inline?

Martin Reinecke martin@MPA-Garching.MPG.DE
Thu Jul 31 10:02:00 GMT 2003


Hi,

there seems to be a lot of confusion concerning the term
"implicit inline". Maybe it would remove some misunderstandings
if everyone would state clearly what he means by this term.

In C++, the expression

   long a;

is equivalent to

   long int a;

This behavior is called "implicit int".

If I'm not greatly mistaken, the code

class foo {
   void bar() { ...}
   };

is also equivalent to (i.e. should be treated by the compiler
in the same way as)

class foo {
   inline void bar() { ...}
   };

(see, e.g. Struostrup, 3rd ed, chapter 10.2.9)

What's wrong about calling this behavior "implicit inline"? I'd
argue it practically begs for that name.

What's your take on this?

Thanks,
   Martin



More information about the Gcc mailing list