|
|
On 11/20/22 19:12 'melcher....@googlemail.com' via fltk.coredev wrote:
... I will limit my request to making Fl_Menu_ derive from Fl_Group.
Does anyone see and issue with that?
IMHO it's always a problem if you change the base class of "something"
(in this case Fl_Menu_). Users deriving their own classes from any menu
subclasses could (at least) be surprised.
I'm not sure if it would do any harm though, it's just my gut feeling
that it *could* be an issue. Here's a theory: let's assume a user
derived a subclass from Fl_Menu_ and now this is no longer a subclass of
Fl_Widget but of Fl_Group. In this case the user class inherits a bunch
of *new* methods which Fl_Group brings with it. Hence there are at least
potential method name conflicts etc. etc..
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/faf48696-e89a-c4e7-7882-d199f1a0cfc5%40online.de.
[ Direct Link to Message ] | |
|
| |