i'm gonna enable them (i.e., remove the -fno-exceptions flag), because some code i'm going to use needs them.
this does *NOT* mean that we should start spreading exceptions all over the place; again, exceptions are coming straight from hell, which is where they try to get you into... *never, ever* throw exceptions where they could escape the code which you just wrote! Exceptions are pretty helpful as long as you can control their scope, and they will create pain if they escape. just a little warning ;) cheers, flo Am 31.05.2013 07:25, schrieb Florian Jung: > Am 31.05.2013 03:18, schrieb Orcan Ogetbil: >> On Mon, May 27, 2013 at 6:11 PM, Tim E. Real wrote: >>> On May 27, 2013 10:33:18 PM Florian Jung wrote: >>>> Hi >>>> >>>> i just noticed that we seem to have exception handling disabled >>>> (try/catch/throw). Is this by purpose? And why? >>>> >>>> greetings, >>>> flo >>>> >>> >>> Hm, where exactly is it disabled? I don't recall seeing that. >>> >>> Funny you should ask. >>> >>> I was wondering the same thing recently, as it appears >>> no exceptions are used anywhere in MusE. >>> >>> In Windows I used exceptions religiously for my 'commercial' >>> production-quality database apps which I sold. I didn't want any surprises >>> or crashes so I tried to catch everything where possible to be safe. >>> >>> However, being many years later, I recently Googled exceptions for linux. >>> To my surprise, I found many sites that concluded exceptions are not >>> a good idea and not reliable! >>> >>> I don't have any links for you, but look it up. >>> >> >> Hmm, interesting. I use them a lot everyday with gcc. I did not see >> any unreliable behavior. I will certainly look it up. > > read my two mails, especially the link with the C++ FQA (Frequently > Questioned Answers). Exceptions don't give you a chance to delete stuff > you have allocated with new. > >> >> Exceptions can get really handy. Hint: They provide an easy pass to >> break out of nested loops (it is debatable if it is good programming >> to exploit them this way but, hell, they work for the purpose). > > this will get right into hell, out of where C++ has emerged. > > Greetings, > flo > >> >> Cheers, >> Orcan >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite >> It's a free troubleshooting tool designed for production >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> http://p.sf.net/sfu/appdyn_d2d_ap2 >> _______________________________________________ >> Lmuse-developer mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/lmuse-developer >> > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Lmuse-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lmuse-developer >
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________ Lmuse-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lmuse-developer
