On Fri, Aug 12, 2016 at 4:02 AM, Carsten Haitzler <ras...@rasterman.com> wrote:
> On Thu, 11 Aug 2016 17:48:13 -0300 Gustavo Sverzut Barbieri
> <barbi...@gmail.com> said:

[snip]

>> Did you guys noticed I'm returning an error, not setting one to TLS,
>> right? It's a:
>>
>>    return EINA_ERROR_OUT_OF_MEMORY;
>>
>> kind of thing, not:
>>
>>    eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
>>    return;
>>
>> we can even @warn_unused_result to force people to handle that
>> properly and there should not be any issues with TLS.
>
> you you mean to return an Eina_Error - i thought you meant to set the
> eina_error global... returning that is probably fine. better than an int. :)

Then we need to have a defined way to treat errors in EFL. If that
is returning Eina_Error so we don't have TLS that's good for me. But
we need to have a way for bindings to translate errors in a
language-specific way. BTW, returning Eina_Errors have one problem
right now: 0 doesn't mean success, it should IMO.

It doesn't make any sense to have specific enums for each library
though.

> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com

Regards,
-- 
Felipe Magno de Almeida

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to