RFR: 7903609: Jextract can not handle some anonymous nested structs [v2]
Jorn Vernee
jvernee at openjdk.org
Wed Dec 13 18:04:43 UTC 2023
On Wed, 13 Dec 2023 17:01:08 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> We can not return from the outer function in the forEach. ~I don't think there is a way to short-circuit the forEach.~
>
> We could enhance the forEach to take a `Predicate` instead, so that we can return true/false to short-circuit, and then have a Consumer overload that just always returns true. I'll look at that
Done in: https://github.com/openjdk/jextract/pull/159/commits/876dd3612b915aced226cce665b8318382445f0e
-------------
PR Review Comment: https://git.openjdk.org/jextract/pull/159#discussion_r1425708512
More information about the jextract-dev
mailing list