On Wed, Dec 7, 2016 at 2:21 AM, Cedric BAIL <[email protected]> wrote:
> On Dec 6, 2016 17:25, "Gustavo Sverzut Barbieri" <[email protected]> wrote:
>
> On Tue, Dec 6, 2016 at 10:34 PM, Cedric BAIL <[email protected]> wrote:
>> cedric pushed a commit to branch master.
>>
>> http://git.enlightenment.org/core/efl.git/commit/?id=
> 889944fefef45ee9d715656427d6f1c523ec9867
>>
>> commit 889944fefef45ee9d715656427d6f1c523ec9867
>> Author: Cedric BAIL <[email protected]>
>> Date:   Tue Dec 6 16:22:11 2016 -0800
>>
>>     efl: extend possible error while decoding an image to be cancelled.
>
> why not use Eina_Error for that, then you register your new types...
> things like permission denied and resource allocation failed are
> already defined in errno.h
>
>
> Mostly history as they are exposed already in some of our legacy API. The
> alternate is to convert them in the legacy API, but I didn't like that idea.

why not? converting between integers is easy, if it's common we can
even declared this in the .eo and generate the legacy as well, or
simply declare a table in .c and ask for translation (simple for
loop).

it's always a pain to deal with errors, you don't know which value,
you don't know how to convert them to string for debug, or exception
in Python...

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to