Associative Array, get value instead of poiter using `if (auto ..)`, possible?

Nick Treleaven nick at geany.org
Mon Sep 2 12:31:57 UTC 2024


On Monday, 2 September 2024 at 11:56:10 UTC, Nick Treleaven wrote:
>     test.update("hello", () => noreturn.init, (ref int x) {
>         x++;
>     });

Sorry, that aborts if the key isn't present. `update` requires 
the first callback to provide a value for the key, and it can't 
return void.


More information about the Digitalmars-d-learn mailing list