This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: #pragma GCC java_exceptions - now with documentation!
- To: Zack Weinberg <zackw at stanford dot edu>
- Subject: Re: #pragma GCC java_exceptions - now with documentation!
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Sat, 28 Apr 2001 18:34:56 -0400
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <20010427173854.V11683@stanford.edu>
On Fri, Apr 27, 2001 at 05:38:54PM -0700, Zack Weinberg wrote:
> +@samp{@w{#pragma GCC java_exceptions}} at the head of the file. This
> +@samp{#pragma} must appear before any functions that throw or catch
> +exceptions, or run destructors when exceptions are thrown through them.
You might drive home this point by adding, "This means the pragma must
appear before #include'ing any of the standard C++ headers," and do so in
the (eventual) example. Some people might not be aware of just how much
actual code tends to appear in the STL subset of headers[*], for example.
Phil
[*] At least until we get 'export' working.
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.