Advertisement Jump to content
Sign in to follow this  

Dynamic binding of global variables between modules.

This topic is 4965 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering what you meant with that specifically, WitchLord? I was hoping that I could at some time bind variables specifically to some modules while not adding them to others. Like this:
mScriptEngine->RegisterGlobalProperty( "some module", "objectname", pObject );
In case you do not see the possibility of realizing this feature I will have to think about soon on how to work around it. Greets, guru.

Share this post

Link to post
Share on other sites
What I meant is that I do not intend to implement a statement like:

import float g_var from "other module";

Of course, this may change if I'm somehow persuaded that it really is a good thing. [wink]

I still intend to change the way the engine is configured so that parts of the configuration can be restricted to specific modules. You will be able to expose different application interfaces (types, functions, properties) to different modules using the same engine in the near future. Maybe even in version 2.3.0 (which shouldn't be too far away).

My intention is to make it possible to use only one engine, for all script work. The only reason to use multiple engines in the future will be if you intend to run scripts in multiple OS threads, where each engine should have at most one thread running scripts on them.

It should also be possible to change the engine configuration dynamically without having to recompile all scripts. Only the scripts that use that particular part of the configurations needs to be recompiled.


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!