I just wanted to point out that expressions like
Evas_Object ev = new Evas();
are invalid in C++. The new operator is for pointers, so Evas_Object
*ev = new Evas(); would be valid.

On Apr 1, 2005 6:07 AM, Nigel Benns <[EMAIL PROTECTED]> wrote:
> Nevermind, I was doing
> 
> Evas.Canvas evas = new Evas.Canvas();
> 
> Its been a while since I looked at it.
> I'm using the lib name as a namespace
> 
> Too be honest, I don't really agree with doing:
> 
> Evas* evas = evas_new();
> 
> as
> 
> Evas_Object ev = new Evas();
> 
> there is no point in an OO language, thats what namespaces are for.
> 
> Evas.Object ev = new Evas.Object()
> 
> that way I can simplify to:
> 
> using Evas;
> 
> Object ev = new Object();
> 
> But of course you know that.
> 
> But the problem persists that 'Evas' in C is a type where in C# or another
> OO binding its a namespace, hence the Canvas object.
> 
> Evas.Canvas
> 
> In situations like in EWL, where you have ewl_main() and ewl_main_quit(),
> i've done things like gtk-sharp:
> 
> Ewl.Application.Main(); and Ewl.Application.Quit();
> 
> because it seems to make the most sense.
> 
> > * Carsten Haitzler, ([EMAIL PROTECTED]) napisa�:
> >> this is one of those problems of making all those bindings. the api
> >> changes to
> >> the point where u can't identify 1:1 mapping to the C calls, and all the
> >> examples and src docs are for the C api.
> > wrapper library without own documentation or own examples?
> >
> >> you want to make the api wrapper map as
> >> closely as possible to the C api in name AND api calls
> >> so
> >>
> >> Evas *evas = evas_new();
> >> ->
> >> Evas evas = new Evas();
> >>
> >> Evas_Object *obj = evas_object_rectangle_add(evas);
> >> ->
> >> Evas_Object obj = evas->object_rectangle_add();
> > what about strip object_ from last line? (this is only cosmetic change)
> >   Evas_Object *obj = evas_object_rectangle_add(evas);
> > ->
> >   Evas_Object obj = evas.rectangle_add();
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by Demarc:
> > A global provider of Threat Management Solutions.
> > Download our HomeAdmin security software for free today!
> > http://www.demarc.com/info/Sentarus/hamr30
> > _______________________________________________
> > enlightenment-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> 
> -------------------------------------------------------
> This SF.net email is sponsored by Demarc:
> A global provider of Threat Management Solutions.
> Download our HomeAdmin security software for free today!
> http://www.demarc.com/info/Sentarus/hamr30
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 



-- 

Cheers,
Jonathan Ho


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to