Is AngelScript a dynamic scripting language?
It's a really simple question, and either I've looked in the wrong spot, didn't understand it if it was answered, or the answer isn't explicitly stated anywhere. Is AngelScript a dynamic scripting language (not dynamically typed)? For example, if I change a script slightly, save it, reload and recompile it, will AngelScript be able to "resume" its place in the new byte code, or will it restart from the beginning? I'm guessing it's not, but it's worth checking, as I'd really like to use it if it is.
[size=2][ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]
As AngelScript is statically typed it is a bit difficult for the engine to modify the bytecode code while it is running. That is a drawback of any statically typed language.
However, it is possible to come pretty close to what you want with a little preparation from the application.
Before recompiling a modified script, store away all the data (serialize them), then recompile the script. Once the script is recompiled, restore the previous data using the new layout. The CSerializer add-on bundled with the SDK provides the implementation for storing the data and then restoring it.
The recompilation has to be done while not currently executing any script as it is currently not possible to serialize the callstack.
However, it is possible to come pretty close to what you want with a little preparation from the application.
Before recompiling a modified script, store away all the data (serialize them), then recompile the script. Once the script is recompiled, restore the previous data using the new layout. The CSerializer add-on bundled with the SDK provides the implementation for storing the data and then restoring it.
The recompilation has to be done while not currently executing any script as it is currently not possible to serialize the callstack.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Great, thanks. That answers my question.
[size=2][ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement