These are chat archives for
Sign in to start talking
Embedded Scripting Language Designed for C++
Oct 22 2017 12:26
ChaiScript is built using only standard C++ while delegates is a MSVC CLR feature. So, no. ChaiScript does not support it
Oct 22 2017 18:11
Sorry, I was talking about the zero-overhead replacement for std::function delegates (that also supports member functions)
I'm using them in all my projects now and its a 1:1 replacement for std::function which (if i remember correctly) always allocates and copies stuff
Oct 22 2017 18:43
Use the Chaiscript extras math. That includes most of the cmath stuff
I had to use std::function in my game engine to make it work correctly with Chaiscript. I don't know of a better way to do that yet.
This is kind of the rough draft of how it works in my engine.