Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ interop #31

Closed
Laeeth opened this issue Jul 6, 2019 · 1 comment
Closed

C++ interop #31

Laeeth opened this issue Jul 6, 2019 · 1 comment

Comments

@Laeeth
Copy link

Laeeth commented Jul 6, 2019

I guess you should mention extern(C++). You can use dpp to #include C++ headers if you blacklist STL and Boost types and it will work for quite a lot. It's still not complete yet but it keeps getting better and in a year or two STL should be fine. It's used in production but it's not something I would say is easy for just anyone to use and expect to work immediately. For C++ - C mostly just works.

Can you do that now using Nim? Just include c++ headers and use them?

How about generating c++ headers from Nim code? We do that in D but the available options aren't yet polished.

@timotheecour
Copy link
Owner

timotheecour commented Jul 10, 2019

duplicate of #12 ; but see my answer here: #12 (comment) we can follow up there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants