You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.
I'm pretty sure the generic type / type parameters code in Djinni is vestigial, left over from an early experimental version and never really finished or tested for a real use case. I welcome PRs if you can make it work for you, but I feel like the code should probably just be deleted if it's not going to be finished for all languages.
If your type is generic the translator takes the same number of template parameters.
At usage each is instantiated with the translators of the respective type argument.
...
Further readers (and myself) would highly appreciate some simple complete example how to accomplish this. Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When defining an external type in yaml like so:
And an interface using the type:
The signature for a method using this type is generated thusly:
So the type parameter is tacked on at the end of the pointer definition, rather than after the type definition, as one would expect:
The text was updated successfully, but these errors were encountered: