This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [basic-improvements] try/finally support for c/c++ - more tests
- From: Matt Austern <austern at apple dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>, Aldy Hernandez <aldyh at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "jason at redhat dot com" <jason at redhat dot com>
- Date: Wed, 6 Nov 2002 16:55:32 -0800
- Subject: Re: [basic-improvements] try/finally support for c/c++ - more tests
On Wednesday, November 6, 2002, at 04:44 PM, Mark Mitchell wrote:
I feel strongly that we should not try to bring C++ features into C,
just to avoid having to compile some stuff in libc with G++.
Especially
as similar features may eventually go into ISO C with subtly different
semantics.
I have the same concerns as Mark. I'm nervous about the
possibility that adding a major new language feature to
our C compiler now, just to meet the needs of a single
project, may conflict with future work on more general
exception handling.
I'd feel a lot better about this either if
(1) it could be hidden behind builtins that looked like
function calls, so that it didn't do anything like
introducing new keywords or new kinds of scope into
the language; or
(2) it was done in the context of explicit consultation
with WG14 and we could be pretty sure that we were
headed in the same direction as standard C.
--Matt