How to convert from string to integer


I browsed the documentation but I didn’t find any function that can convert from string to integer, though there is function to_string that do the reverse.

Do I have to provide it myself from C++ ?


You can use to_int and similar. The best way to get a list of all of the built in functions is with dump_system from the repl.

If you are interested in helping me document all of the built in functions, that’d be great! Let me know.



I’ll be glad to help with documentation. I read in another thread that you want help with chaiscript cheatsheet in github.
Do I just push my addition via github or do you have other things in mind ?


A pull request for a github fork would be the easiest thing for both of us. And the cheatsheet is a great place to put any new docs, I think.