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.

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.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
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to