[foreign] proposal - addressOf
Jorn Vernee
jbvernee at xs4all.nl
Wed Feb 27 15:48:13 UTC 2019
Sounds good! I think `addressOf` is intuitive, and is different enough
from `elementPointer` to not be confusing.
Do we also need to have a super interface for these C carriers? (the
addressOf method could be put there for instance).
Jorn
Maurizio Cimadamore schreef op 2019-02-27 16:36:
> Hi,
> in light of feedback from [1] and [2], I'd like to propose that all C
> carriers:
>
> Pointer
> Array
> Struct
> Callback
>
> provide an 'addressOf' method which returns a Pointer to X, where X is
> the original carrier. This would also mean renaming the current
> Struct::ptr to Struct::addressOf. Good? Bad?
>
> [1] -
> https://mail.openjdk.java.net/pipermail/panama-dev/2019-February/004319.html
>
> [2] -
> https://mail.openjdk.java.net/pipermail/panama-dev/2019-February/004626.html
More information about the panama-dev
mailing list