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.
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.
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)
How bind a function with optional parameterparameter with Chaiscript ?
I try this :
I try with overloaded function :
I also want to ask how to do
I also want to ask how to do this correctly. Right now I can only write a wrapper function for each default argument, which is very tedious.
I'm sorry, but there's no way
I'm sorry, but there's no way to get the C++ compiler to tell us that there are default arguments for a function. Your options are to wrap the function in ChaiScript to provide the extra versions or wrap them in C++. If you wrap it in C++ you get the advantage of maintaining the default arguments as provided.
It's not pretty, unfortunately.
-Jason