then we should have an equivalent of a constructor for a mixin? as you
said, eventually "initialize to 0" is not good enough

On Mon, Sep 25, 2017 at 7:11 PM, Cedric Bail <[email protected]> wrote:
>> -------- Original Message --------
>> Subject: Re: [E-devel] [EGIT] [core/efl] master 02/02: ecore: force 
>> initialization of Efl.Io.Closer.Fd.
>> Local Time: September 23, 2017 11:39 AM
>> UTC Time: September 23, 2017 6:39 PM
>> From: [email protected]
>> To: Enlightenment developer list <[email protected]>
>>
>> This is not right. You can use only -1 and you can use the constructor.
>
> It is a mixin that doesn't inherit from Efl.Object, so I can't see a way to 
> use the constructor there. The problem of the initialization being 0, means 
> that you end up with the possibility that a non initialized object will close 
> fd 0 at fork time without owning that fd at all.
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
Gustavo Sverzut Barbieri
--------------------------------------
Mobile: +55 (16) 99354-9890

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to