Re: [AD] Exception Support for Allegro

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wednesday 05 October 2005 06:57 am, Evert Glebbeek wrote:
> Allegro is a C library. You cannot safely use exceptions from callbacks.

These two statements have nothing to do with each other. Just because it's C 
doesn't make exceptions unsafe in callbacks. You can use -fexceptions to 
safely allow exceptions in callbacks from C. It's where/how those callbacks 
are used that matters, and that makes no difference if it's C or C++.

If Allegro was a C++ library, would you force -fno-exceptions because the 
callbacks are unsafe for exceptions? If not, then why disallow them as a C 
library? As long as it's documented how the callbacks are called, it should 
be up to the programmer to decide if it's safe to use them. If there's 
problems, then it's their fault.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/