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

Application

 
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 10:43 am    Post subject: Application Reply with quote

Somewhat of a jump-ahead, but I've been debating about how to implement the concept of the Application. Ogre uses an Application class that you first subclass, then instantiate and set running from a blank main. Since part of the purpose of the Application class is to instantiate the singletons and some setting-up, could it be possible to use module constructors? Then we could either have a muchly toned-down Application class, or some other methodology.
_________________
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:06 am    Post subject: Reply with quote

I've used the module-as-object capabilities of D to little to say much about whether this can work. But with MI problems popping up all over the place, it would be nice with solutions where it's unnecessary to inherit objects all the time.

Initializing stuff could just as well be done by a static function somewhere. Having an app module seems enticing, really (at least at the moment).
Back to top
View user's profile Send private message
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