This is the mail archive of the gcc@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: __attribute__((cleanup(function)) versus try/finally


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


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