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

Will there be a syntax for withArrayLen? #217

Closed
Magicloud opened this issue Dec 2, 2018 · 3 comments
Closed

Will there be a syntax for withArrayLen? #217

Magicloud opened this issue Dec 2, 2018 · 3 comments

Comments

@Magicloud
Copy link

Right now, I still have to write Haskell code with call or unexposed fun to wrap C functions that take array parameter. The structure of them are so similar, I think it is possible to make a c2hs syntax.
Is it possible?

@deech
Copy link
Contributor

deech commented Dec 2, 2018

Do you mean special syntax for something like void foo(bar* barArray, int barLen, ...)?

@Magicloud
Copy link
Author

Yes.

@Magicloud
Copy link
Author

Sorry. My mistake. Just learnt what & actually means. So this does not require a syntax to work.

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