About ChaiScript

ChaiScript is the first and only scripting language designed from the ground up with C++ compatibility and modern design in mind. It is an ECMAScript-inspired, embedded functional-like language.

ChaiScript is licensed under the BSD license.

Download

Due to an increased release schedule, and the nature of ChaiScript being a header-only library, binary releases will be made less often. Previous releases can be found on github.

Version: 4.2.0 Released: 12/1/2012
(Requires Boost)
Source (tar.bz2)
Source (zip)

Version: 5.2.0 Released: 12/1/2012
(Requires C++11 Compiler)
Source (tar.bz2)
Source (zip)

get/set state not getting rid of variables ?

should i be able to get rid of any variables within script with get/set_state combo ?
it seems like its not working (with 4.0.0)
if i run my script twice i get "Variable redefined"

is there a way to fully reset the state of the engine including any variables.

in my program i run/eval() same script over and over (from multiple threads potentially)
and would like for each run to be independent of each other.

Another user brought up the

Another user brought up the same question. There are some technical details that I have to look into, but it might be possible to make the state switching also swap out the local variables.

-Jason

Please see this task for more

Please see this task for more info and a solution to what you need: https://github.com/ChaiScript/ChaiScript/issues/25

-Jason

Support ChaiScript by sharing it with your friends: