These are chat archives for ChaiScript/ChaiScript
@patlecat So... you still haven't told me what the actual error you are getting is. And this isn't a full compilable example for me to test.
I see a couple of potential issues, however.
string, for example. You can call the built-in explict conversions to string, like the ChaiScript repl does: https://github.com/ChaiScript/ChaiScript/blob/develop/src/main.cpp#L233 See here we explicitly call
to_stringvia ChaiScript, for each return value, because we know we want to display it to the user
boxed_castinstead of the free function version. That is,
I'm guessing it's very likely that issue #1 is your issue. If you are trying a Debug build or you are setting
CHAISCRIPT_NO_THREADS or anything that's different from the official build, you will almost certainly have problems.
If that's not your issue, please tell me what error message you are getting. A stack trace would be nice. A fully standalone piece of code would be ideal.
If you make it a branch on your project I can even contribute to it directly with a fork. This is the best way that I can help you