[foreign-memaccess+abi] RFR: Simplify ValueLayouts
Per Minborg
pminborg at openjdk.org
Thu Feb 16 09:46:50 UTC 2023
On Wed, 15 Feb 2023 16:38:13 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> question: instead of using a duplicator object, can't we have a new `dup` overload here with the required arguments, rewire the old `dup` to the new one, and then override as appropriate in all the subclasses? That would still allow you to define `withOrder` in a single place (which, AFAICS appears to be the main simplification?)
This is exactly what I am proposing as an alternative in the PR header and perhaps that is easier to read. I will update the proposal accordingly.
-------------
PR: https://git.openjdk.org/panama-foreign/pull/798
More information about the panama-dev
mailing list