View previous topic :: View next topic |
Author |
Message |
csauls
Joined: 27 Mar 2004 Posts: 278
|
Posted: Mon Apr 26, 2004 10:43 am Post subject: Application |
|
|
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 |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Tue Apr 27, 2004 2:06 am Post subject: |
|
|
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 |
|
|
|
|
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
|