[Dynamite] another us trip...
Guy Slater
guy@ebi.ac.uk
Mon, 10 Apr 2000 19:09:14 +0100 (BST)
On Sun, 9 Apr 2000, Ian Holmes wrote:
> The main problem with using idlstubs right now is that it uses a "has-a"
> inheritance model, and it would be nice to switch this over to a GTK-style
> "is-a" inheritance model where inherited data members go at the front of
> the struct, as we discussed. I think I have a way to do this, but I also
> think it won't be too much trouble to change, as long as we don't write
> *too* much code using the "has-a" model.
>
> So I will take responsibility for doing the changes. If anyone really
> can't stand the idea of using an IDL-to-C mapping that is changing under
> their feet in this way, then speak up now.
I reckon this is going to be unavoidable,
and I don't think it'll be too much of a problem,
so long as we still have corresponding IDL at the end,
> We *could* wait until I change
> idlstubs, but again, it is an undesirable bottleneck.
> Alternatively, we could just stick with the "has-a" model.
> (If anyone needs a review of our inheritance-model discussion then
> speak up; I'm assuming no-one does, cos I'm lazy and I hate typing.)
Hate typing ? Nah.
I was just coming round to has-a.
Didn't you (ian) say is-a would barf with multiple inheritance ?
What are the pros and cons ?
--