On Mon, 28 Nov 2022 22:12:22 GMT, David Holmes <dhol...@openjdk.org> wrote:

>> Alternative for struct?
>
> Not sure ... didn't we start using C++ lambda's for some of these "closure" 
> operations? @coleenp what is the usual pattern we use for this kind of thing?

The `unlink` method of `ResourceHashTable` gets an ITER type and calls its 
`do_entry(Key&,Value&)` method. 
If we want to use lambdas, `unlink` should call the input directly and not one 
of its methods.

-------------

PR: https://git.openjdk.org/jdk/pull/11288

Reply via email to