This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ANSIfy cp/parser.c
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Neil Booth <neil at daikokuya dot co dot uk>, Per Bothner <per at bothner dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: 10 Jan 2003 18:08:41 +0100
- Subject: Re: ANSIfy cp/parser.c
- Organization: Integrable Solutions
- References: <107980000.1042217630@warlock.codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
[...]
| As a small example, consider the C++ code that handles variables going
| out of scope. It checks for a destructor, and if there is one, runs
| a cleanup. Well, that will work fine in C -- there are no destructors.
| If profiling shows those checks to be expensive, conditionalize the
| function. But, there's no reason to use function-pointers and callbacks
| and so forth to move most of the code into c-common.
I find that quite definitively convincing argument.
Thanks,
-- Gaby