These are chat archives for ChaiScript/ChaiScript

Jan 2016
Jan 17 2016 16:54
Are there any good ways to make multifule script? I mean something similar to #include, or require()
Sandu Liviu Catalin
Jan 17 2016 21:42

@Rexagon the #include wouldn't really make much sense in a language like ChaiScript. As for the require() function you could implement that your self as a regular function which simply evaluates files based on the given path argument.

As a suggestion, I would recommend saving paths in a map or something so you don't evaluate the same script twice.

Viktor Rennert
Jan 17 2016 22:12
Has anyone figured out how to box_cast from a vector<DerivedClass> to vector<BaseClass>?