This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: On inlining in C++


dewar@gnat.com (Robert Dewar) writes:

| In C++ the practice of writing simple functions in the header is not just

in C++, there is distinction between putting something in header and
requesting inlining.  Certainly requesting inlining implies making the
function available in every translation unit that uses it, but
putting something in a header file does not mean inlining is requested.

| a matter of the programmer "requesting inline explicitly", but also it
| is just the more convenient way of doing things, and doing otherwise may
| be undesirable for structural and documentation purposes.

More convenient way of doing what?  

C++ is not Ada and Ada is not C++.  
If you want to argue about C++ inline, please do consider C++
semantics, practice. 

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]