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: [basic-improvements] try/finally support for c/c++ - more tests



It is when they're written in gnu99.  It's also a royal pain to require
a C++ compiler when building glibc; bootstrapping gets harder every
day...
Well, you want C++ features, you need a C++ compiler. :-)

I'd rather see ISO C99 extensions getting added to G++ than features
that don't even exist in C++ getting added to GCC.

Then you require that all pthread_cleanup_push's which need to
be unwound properly be written in C++ source files.
Precisely.

I think that if you want exception-handling, you should use a language
that has that feature.  (Otherwise, I want to add Prolog unification and
ML type inference to GNU C. :-))

And, if we really, really want exceptions in C, we should pick an
existing, standardized model from the C family of languages -- namely
the model in C++.  Add try/catch, not try/finally.

Or, perhaps better, and taking into account RTH's comments, add
destructors.

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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