This is the mail archive of the
mailing list for the GCC project.
Re: On inlining in C++
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: jbuck at synopsys dot com, aph at redhat dot com, gcc at gcc dot gnu dot org
- Date: 04 Aug 2003 19:17:57 +0200
- Subject: Re: On inlining in C++
- Organization: Integrable Solutions
- References: <20030804170501.5712CF2D85@nile.gnat.com>
email@example.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++