Hacker News new | ask | show | jobs
by maikklein 4431 days ago
I saw that you can even generate C++ code from nimrod and that you can automatically generate c wrapper with c2nim, but how does it play with C++? Can you easily use C++ libraries in Nimrod or do you have to write a C interface?
2 comments

C wrappers are still generally better supported, or at least that's what I assume because that's what most people still use. I haven't personally tried wrapping any C++ code yet. c2nim does support C++ now so in theory it should be just as easy as wrapping C.
It's not "easy" per se, but totally doable (if a little rough last time I tried, but that was 6 months ago) to interface with C++. There is even a C++ backend from what I recall. Pop into the IRC or just have a play yourself :)