This is the mail archive of the gcc-patches@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: ANSIfy cp/parser.c


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


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