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

std::function type cast #113

Open
wavewave opened this issue Sep 9, 2018 · 0 comments
Open

std::function type cast #113

wavewave opened this issue Sep 9, 2018 · 0 comments

Comments

@wavewave
Copy link
Owner

wavewave commented Sep 9, 2018

Now that we support std::function, it is desirable to support casting function parameters from Haskell FFI types to C++ types.

Note that Haskell-C++ type/class correspondence is not 1-1 or 1-N, N-1. it's M-N.
For example,
For Function (Ptr RawA -> Ptr RawB -> IO (Ptr RawC)), the corresponding C++ type can be
std::function<(C*)(A*,B*)>, std::function<C(A*,B*)>, std::function<C(A&,B&)> and so on.

@wavewave wavewave moved this to Backlog in fficxx dev Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant