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

re-instate the now undocumented --header:FILE option, or provide a suitable alternative #778

Open
timotheecour opened this issue Jul 6, 2021 · 2 comments

Comments

@timotheecour
Copy link
Owner

timotheecour commented Jul 6, 2021

there should be a way to generate C/C++ header files from nim, that stays in sync with nim compiler development; making it built into the compiler seems by far the easiest way to avoid replicating what the compiler already does

linke

other languages allow generating header files, eg D

@juancarlospaco
Copy link
Collaborator

It seems that "Nimterop" project is dead abandoned now too BTW... 😐

@timotheecour
Copy link
Owner Author

is it?
interop (in particular C++ interop) is a hard problem, but a critical one that's worth solving; note that neither c2nim nor nimterop correctly handle c++ (c2nim requires a lot of manual patching for eg) and the right tool will have to be clang-based (as done in D via calypso and other projects) which removes the hardest part (C, C++ frontend) out of the equation.

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