digitalmars.D.learn - AA.values un- safe?!
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (5/5) Jul 28 2021 Why is call to `values` in, for instance,
- jfondren (3/8) Jul 28 2021 I don't know, but .byValue is @safe and returns a forward range,
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (2/4) Jul 28 2021 Great point. Thanks.
Why is call to `values` in, for instance, ```d auto _ = string[string].init.values; ``` not ` safe`?
Jul 28 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.
Jul 28 2021
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.
Jul 28 2021