AA.values un- at safe?!

jfondren julian.fondren at gmail.com
Wed Jul 28 21:39:43 UTC 2021


On Wednesday, 28 July 2021 at 21:04:11 UTC, Per Nordlöw wrote:
> Why is call to `values` in, for instance,
>
> ```d
> auto _ = string[string].init.values;
> ```
>
> not `@safe`?

I don't know, but .byValue is @safe and returns a forward range, 
so you could use `.init.byValue.array` instead.


More information about the Digitalmars-d-learn mailing list