It's definitely doable in the free software world.
It's definitely doable in the free software world.
Posted Sep 1, 2009 12:40 UTC (Tue) by cortana (subscriber, #24596)In reply to: It's definitely doable in the free software world. by Ed_L.
Parent article: Things that go Clang in the night: LLVM 2.4 released (ars technica)
Whoa, oooold thread. But I thought I'd refer to the gtkmm documentation:
Can I use C++ exceptions with gtkmm?
Yes, it is possible but it is not a very good idea. The official answer is that, since plain C doesn't know what a C++ exception is, you can use exceptions in your gtkmm code as long as there are no C functions in your call stack between the thrower and the catcher. This means that you have to catch your exception locally.
You will be warned at runtime about uncaught exceptions, and you can specify a different handler for uncaught exceptions. Some gtkmm methods do even use exceptions to report errors. The exceptions types that might be thrown are listed in the reference documentation of these methods.
It's the typical C++-code-called-by-C-code hooplah that I have to go through that makes use of gtkmm more annoying than it could have been.
