Am 09.06.08, 22:43 -0500 schrieb Bob Friesenhahn:
> On Tue, 10 Jun 2008, Guy K. Kloss wrote:
> > On Tue, 10 Jun 2008 1:56:46 pm Louis Solomon [SteelBytes] wrote:
> >> I much prefer having the apis return error codes. (and if I want strings,
> >> then have an api to map error code to string)
> >
> > Well, at least that would be something that can be wrapped internally into
> > exceptions if one wants to approach the implementation in an object oriented
> > way.
>
> I agree that using callbacks to report errors is fundamentally bad,
> particularly for multi-threaded programs. It is possible to make it
> work, but there is more overhead and the result is not pleasant.
With more advancement the callback may become a answere to the many return
code handling if's, which are not so nice eigther ;)
if(do_what_your_need()) {
send_error("error in do_what_your_need()");
exit();
}
kind regards
Kai-Uwe Behrmann
--
developing for colour management
www.behrmann.name + www.oyranos.org
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Lcms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user