Thread overview
AA.values un-@safe?!
Jul 28
jfondren
July 28

Why is call to values in, for instance,

auto _ = string[string].init.values;

not @safe?

July 28

On Wednesday, 28 July 2021 at 21:04:11 UTC, Per Nordlöw wrote:

>

Why is call to values in, for instance,

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.

July 28

On Wednesday, 28 July 2021 at 21:39:43 UTC, jfondren wrote:

>

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

Great point. Thanks.