Re:ChaiScript – Easy to Use Scripting for C++
by earenndil on Thursday July 25, 2019 @06:34PM
(#20530495)
Yep. I write my engine in D, which is nicer than c++ for prototyping, but regardless I embed a scheme for scripting.
[ Parent
| on HN ]
could you tell me more about the D/scheme integration - specifically what scheme you used, and what you had to do to integrate it with D? i spent a couple of days trying to integrate chibi with D, but gave up because it made too much use of preprocessor macros.
Re:ChaiScript – Easy to Use Scripting for C++
by earenndil on Thursday July 25, 2019 @07:48PM
(#20531017)
I shopped around quite a bit and eventually decided that s7 scheme[1] would be the best for me. It's been fairly painless to integrate so far, I've just copy-pasted the function prototypes I've needed, as I've needed them. No macros. Engine is closed-source atm so I can't show code, but it's a pretty straight translation from the c examples.