Skip to content

Conversation

rahulmutt
Copy link

Eta uses the java calling convention, so I've added it as a token to facilitate parsing of FFI imports/exports. Moreover, the FFI signatures allow class constraints so I changed the parsing of fspec to use truectype instead of truedtype. These changes do indeed work as was tested by running hlint (which depends on this) on Eta programs that were FFI heavy.

@mpickering
Copy link
Collaborator

Please add some tests and should this not be behind a pragma like JavaFFI to mirror JavascriptFFI?

@rahulmutt
Copy link
Author

Sure. About the extension, there's an open issue about that in the Eta repo right now. I can come back to this PR once that's done.

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

Successfully merging this pull request may close these issues.

2 participants