Yes, it doesn't.. hmm.

        I see what's going on.

        The reason my Fl_Scrollbar code was working for my example
        is I've been compiling against 1.3.x, and apparently Fl_Scrollbar
        has a new value(int) member..! And in my example I'm passing an int.

        From Fl_Scrollbar.H:

class FL_EXPORT Fl_Scrollbar : public Fl_Slider {
     [..]
public:
     [..]
     int value(int p) {return int(Fl_Slider::value((double)p));}   // <-- THIS 
IS NEW!
     [..]

        I guess that doesn't exist in 1.1.9 and back..!
        So I'll need to fix my example I guess to be compatible with 1.1.x

        I thought the reason it worked was because it was somehow
        zeroing in on the value(double) in Fl_Valuator, but apparently
        that's not the case. Apparently there's a rule I've completely
        forgotten about shadowing of method names in subclass definitions.
        (sigh) I don't think a cup of coffee will wake up those braincells
        either, but I'll give it a try in a few minutes. (yawn)

[email protected] wrote:
> Greg, does the following compile in your environment?  It shouldn't,
> and doesn't in mine.
> 
> class B {
> public:
>    int value(double) { return 1; }
> };
> class D : public B {
> public:
>    int value(int, int, int, int) { return 2; }
> };
> int main()
> {
>     D d;
>     return d.value(1.5);
> }
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to