>
> On Jun 29, 2007, at 12:17 PM, none <@easysw.com, ff"@>.easysw.com
> (none) <none .easysw.com> wrote:
>
> > with(window) {
> >      MenuBar *menu = new MenuBar(...);
> >      }
> > }
> > disadvantage is the use of a macro,
>
> Yes, a macro like that is unacceptable in a library, even if we named
> it fl_with() to no pollute the namespace.
>

Those interested in "syntactic sugar" might consider this

Fl_Group& operator<<(Fl_Group& g, Fl_Widget* w)
{  g.add(w); return g; }

No library support required :)

Have a nice holiday weekend,
Stan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to