On Mon, 13 Sep 2010 15:57:05 +0200
Cedric BAIL <[email protected]> wrote:

> > But a small suggestion:
> >        Maybe cast once when you assign to async->ls.common.data.
> >
> > That way you only have one cast (although it means you need to make
> > it clear it's user data in the structure there).
> 
> Nah, the idea of this const is to prevent the code in Eio to modify
> data. I want it in my structure to give a chance to the compiler to
> spank me before it's too late.

Ahh... but it's a void pointer, you can't write through it to the user
data without a cast (or assignment to another structure).  And now you
have the habit of casting all the const void *s anyway, so you'd
probably just shoosh it automatically.

But I just hate casts ;-)

        Regards,
        nash


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to