On Fri, 12 Jan 2001, Angus Leeming wrote:
> Allan,
>
> I've worked out how to put an abstract ButtonControllerBase in the
> ControlCitation class, or rather in a class that ControlCitation can be
> derived from.
Are you sure you want an inheritance relationship?
I'm not sure what sort of separations you are hoping to achieve here. At
this point in time I'd prefer to continue with what we already have and
then develop a separation later if it really is necessary. Are you sure
that what you are doing is actually going to be reusable by either John
or Marko or any other port for that matter? If there is a good chance
that it won't, then steady your beating heart and direct your passions
elsewhere ;-)
Perhaps now would be a good time to explain in detail what you are
separating and why. Or maybe I should read that other email from earlier
in the week if I can find it in the mess that is my mailbox.
> I have one question regarding your ButtonController class. In the header file
> there is:
>
> // Somebody else owns the FL_OBJECTs we just manipulate them.
> // so? (Lgb)
> //~ButtonController() {}
>
> Well and good. But SURELY the ButtonController owns its ButtonPolicy and so
> this pointer should be deleted by the ButtonController d-tor?
Yes. This will soon spot anyone who is doing it wrong.
Allan. (ARRae)