https://kotlinlang.org logo
Title
j

jmullin

02/12/2018, 10:42 PM
Hi! Checking in on callbacks/function-pointers with struct-by-value returns. From the INTEROP.md readme:
Callbacks
[…]
Note that some function types are not supported currently. For example, it is not possible to get pointer to function that receives or returns structs by value.
Is this functionality on the radar/roadmap, or more of a “we’ll get to it someday” status?
o

olonho

02/13/2018, 7:46 AM
it is being considered, but we need to learn potential usecases before investing time into that feature. Why do you need it?
j

jmullin

02/13/2018, 12:30 PM
Okay, understood. I had asked about this before, but I don’t think I was very clear about it, so sorry about the repeat.
My use case is interop with the Godot game engine via their GDNative C bindings. https://godotengine.org/article/look-gdnative-architecture