-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Document example for @wrapper & multiple-method interface #561
Labels
Comments
Recovering a @rahulmutt gitter message the example could be similar to
foreign import java unsafe "@wrapper method1,method2" :: ([signature-of-method-one])
-> ([signature-of-method-two]) -> [jwt]
public interface SomeInterface {
String method1(int i);
double method2(int i, int j);
}
foreign import java unsafe "@wrapper method1,method2" :: (Int -> SomeInterface JString)
-> (Int -> Int -> SomeInterface JDouble)
-> SomeInterface |
@jneira Looks good! Interested in submitting a PR? |
Of course! I'll try to add at the end of section in https://eta-lang.org/docs/user-guides/eta-user-guide/java-interop/java-advanced-ffi#working-with-java-interfaces |
jneira
added a commit
that referenced
this issue
Jan 22, 2019
2 tasks
rahulmutt
pushed a commit
that referenced
this issue
Jan 23, 2019
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
No description provided.
The text was updated successfully, but these errors were encountered: