On 8 Feb 2010, at 19:09, Evan Laforge wrote:
> But you'd still have to cast, right?  To avoid casting (in the client
> code at least) wouldn't you need:
>
> virtual Fl_Group *Fl_Widget::as_group() const
>

Evan,

I'm not sure I understand... Fl_Group derives from Fl_Widget, so they  
are "the same" as far as this is concerned... The method itself  
returns int (in Albrecht's implementation) but that's in effect a  
boolean... There must be something here that I am missing; where do  
we need to cast?



_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to