JExtract - support abstracting of types
Radosław Smogura
mail at smogura.eu
Wed Apr 28 00:24:17 UTC 2021
Hi all,
When I worked on my project I noticed I would have to provide bindings between Linux and OSX, both have same API, however final values behinds macros and struct can slightly differ.
This is quite problematic, as due to static nature of generated bindings it’s hard to provide abstraction layer.
I wonder if it would be possible JExtract to support abstraction.
I was thinking about having ability to generate singleton classes where methods will be final instance methods referencing static handles.
With this approach I would be able to use IDE to extract interface or super class and than switch on runtime to implementation I want to use.
What do you think about something like this?
Best regards,
Rado
More information about the panama-dev
mailing list