__attribute__((cleanup(function)) versus try/finally
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu May 8 12:05:00 GMT 2003
Mark Mitchell <mark@codesourcery.com> writes:
[...]
| Seriously, one of the few remaining objections to programming in C++ has
| been "exceptions add too much overhead". Once we add unwind tables to C
| -- as all of our proposals do, including mine -- I'm not really sure
| what the point of programming in C is going to be any more.
Exactly!
We should refrain from adding extensions to C or C++ from a
short-sighted point of view. At any point we n eed to have the picture
in the foreground, or else we would end up in one or two years cursing
after the same extensions (Did I mention statement-expression ? :-)
| Maybe if
| you really like the fact that "struct S {};" doesn't introduce a
| typedef,
Well, in the C++ front-end there is no reason we should be creating
that artificial typedef all around: it wastes memory and unnecessarily
complicates routines.
-- Gaby
More information about the Gcc
mailing list