On Thu, Sep 15, 2016 at 11:11 AM, Gustavo Sverzut Barbieri
<[email protected]> wrote:
> On Thu, Sep 15, 2016 at 3:41 AM, Carsten Haitzler <[email protected]>
> wrote:
[snip]
> my hope is that we can allow promise-only programming by allowing some
> events to auto-generate them, something like:
>
> EFL_PROMISE_FOR_EVENT_GENERATOR(button, EVENT_CLICKED,
> {.cb = action, .failure_cb = bla},
> {.cb = another_action},
> {.cb = yet_another_action, .failure_cb = blergh});
>
> see my email to cedric on some C-only macros that we should offer to
> ease our usage in C, they could be created in a more C++ fashion in
> their bindings and Python/JS/Lua don't need such things.
>
> Likewise, you could generate a promise for an event (one-shot), like
> "another_action" above could wait for "EVENT_CHANGED":
Yeah! Convertion between both is something that is in my list.
[snip]
> --
> Gustavo Sverzut Barbieri
> --------------------------------------
> Mobile: +55 (16) 99354-9890
Regards,
--
Felipe Magno de Almeida
------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel