This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


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

Re: #pragma GCC java_exceptions - now with documentation!


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.


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