RFR: 7903947: Access to function pointers in structs could be streamlined
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Jul 28 15:03:10 UTC 2025
On Mon, 28 Jul 2025 13:47:56 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:
> I kept trying to avoid renaming the invoker as I didn't like having the dollar sign or a prefix in the invoker, but I like the idea of having readonly/write/execute mode in the config.
I feel your pain. We defo went thorugh a lot of pain to remove dollars from generated code:
https://cr.openjdk.org/~mcimadamore/panama/jextract_changes.html
So, it will be a bit sad to see them coming back. Also, it will make some code more verbose compared to their C counterpart, as the C syntax can distinguish between application (`foo.x()`) and access (`foo.x = ...`).
-------------
PR Comment: https://git.openjdk.org/jextract/pull/287#issuecomment-3127640332
More information about the jextract-dev
mailing list