Re: [gnomemm] foocanvasmm



On Sat, 2003-02-15 at 17:22, ERDI Gergo wrote:
> On 15 Feb 2003, Murray Cumming wrote:
> 
> > > 2. The namespace
> > > Gnome::FooCanvas would be the obvious answer,
> > 
> > But foocanvas isn't part of GNOME.
> 
> A common toplevel namespace would still be nice.

Feel free to propose and administer a GnomeLikeStuff:: namespace.

> 
> > >  however, since the canvas
> > > widget itself is called FooCanvas, this doesn't really fly (a conflict
> > > between namespace Gnome::FooCanvas and type FooCanvas, when inside
> > > Gnome::FooCanvas). I went with Gnome::FCanvas but obviously this is
> > > sub-optimal.
> > 
> > I suggest FooCanvas::Canvas and FooCanvas::Item, etc.
> 
> How would a FooCanvas toplevel namespace work with there being also a 
> FooCanvas toplevel type?

GnomeCanvas becomes Gnome::Canvas::Canvas.
GnomeCavasItem becomes Gnome::Canvas::Item

so

FooCanvas becomes FooCanvas::Canvas.
FooCanvasItem becomes FooCanvas::Item

Where's the problem?

-- 
Murray Cumming
murray usa net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]