[foreign] proposal - addressOf
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Feb 27 17:19:56 UTC 2019
On 27/02/2019 15:48, Jorn Vernee wrote:
> 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).
Let's start simple, we can add the carrier in a second attempt.
Maurizio
>
> 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