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]

Re: May I propose an extension and ask how difficult this would be?


Martin Dalecki wrote:
> 
> "George T. Talbot" wrote:
> >
> > One of the things that make Java coding a bit easier than C++ is that if an
> > exception is thrown in a Java method, then the exception must be caught or
> > declared in the method/function declaration of any function calling a method
> > which throws an exception.
> >
> > How hard would it be to extend the C++ compiler so that I could add
> > "-fbe-pedantic-about-c++-exceptions" and get similar behavior?  This might
> > make debugging exception handling code far easier to deal with.
> 
> What about:
> -fI-should-be-using-gcj-instead-of-gpp
> 
> ?

No kidding, eh?  ;^)  I wish I was writing this part of my project in Java,
although templates (parameterized types & functions parameterized by type) are
rather useful for some things.

--
George T. Talbot
<george@moberg.com>


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