This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: On inlining in C++
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: Thomas Kunert <kunert at physik dot tu-dresden dot de>, gcc at gcc dot gnu dot org
- Date: 05 Aug 2003 11:53:20 +0200
- Subject: Re: On inlining in C++
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0308051130010.14031-100000@bellatrix.tat.physik.uni-tuebingen.de>
Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:
| Of course - but this looks like a workaround for a C++ defect, not like a
| good design principle ;) I'd rather like
|
| void f(int) { ... }
|
| void g(int i) {
| inline f(5);
| f(i);
| }
|
| to have one call inlined, not the other. But of course this aint C++...
Please, let's separate new language features design from implementation
of existing ones.
The next C++ standards committee meeting is in September in Kona. If
you think that is something C++ should have, please submit a proposal.
-- Gaby