ANSIfy cp/parser.c
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Jan 10 17:10:00 GMT 2003
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
More information about the Gcc-patches
mailing list