Feature to get or add value to an associative array.

Nick Treleaven nick at geany.org
Fri Apr 20 08:24:00 UTC 2018


On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote:
> You can get a pointer from the ref return:
>
>     Value* p = &aa.slot("key", { inserted = true; return 
> Value.init; });

This is not @safe, even with -dip1000:

Error: cannot take address of ref return of f() in @safe function 
main


More information about the Digitalmars-d mailing list