FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MI

 
Post new topic   Reply to topic     Forum Index -> Sinbad
View previous topic :: View next topic  
Author Message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Mon Apr 26, 2004 12:34 pm    Post subject: MI Reply with quote

Well as I'd suspected Steve uses Multiple Inheritance in a few places... see file 'ogrenew/Docs/api/html/classOgre_1_1EventProcessor.html' for an example. So how shall we deal with this? One option is to use interfaces, but unless mixins happen soon, that would mean a lot of extra coding for all the interface implementors.
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Mon Apr 26, 2004 3:30 pm    Post subject: Re: MI Reply with quote

csauls wrote:
Well as I'd suspected Steve uses Multiple Inheritance in a few places... see file 'ogrenew/Docs/api/html/classOgre_1_1EventProcessor.html' for an example. So how shall we deal with this? One option is to use interfaces, but unless mixins happen soon, that would mean a lot of extra coding for all the interface implementors.


Ok, I had to look at the header file to see what you meant. Might be a problem. We probably need to look closer at he event system as a whole. There might be better solutions.
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Mon Apr 26, 2004 3:41 pm    Post subject: Reply with quote

*nods* Might go into realms like those being explored by the DWT team. Or do something wild with member templates. Or both. I figure we could always have a stand-alone hierarchy of event system objects, and have them tie into the main framework via delegates or the like. All just hypotheses right now.
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Tue Apr 27, 2004 2:17 am    Post subject: Reply with quote

In many places it might be relevant to look into has-a relations instead of is-a relations.
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Tue Apr 27, 2004 12:17 pm    Post subject: Reply with quote

The has-a approach really probably is best... we'll just have to run with it and see what it ends up requiring of us. Might end up writing callback hooks for objects and their 'owners' to work together, but that's not too bad.
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Sinbad All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group