Proper way of doing opaque external types? #823
sirlan-ff00ff
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, for some time I've been trying to write raylib bindings for koka for testing things out, and one thing that most stops me - among other things - is trying to wrap raylib types in ones to use from koka and converting between the two
For simple things like colors, or enums is quite trivial to write a koka representation and convert between them in the C glue code, but then for more complex ones that for example uses
void*s, there doesn't seem to be a good solution to represent thoseThe ideal would be opaque types, that carry/point to data that is not representable in koka and only interacted with using external functions
Beta Was this translation helpful? Give feedback.
All reactions