[Issue 22506] Accessing immutable AA in @nogc with index results in compilation error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 14 13:38:57 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22506

--- Comment #1 from muhammed.yucel at bosagora.io ---
Documentation (1) states the "why" for this error but I think it is also wrong.
RangeError is statically allocated thus GC shouldn't be a problem but the
actual problem is a new key may be allocated when indexing an AA (left side).


1: https://dlang.org/spec/function.html#nogc-functions

--


More information about the Digitalmars-d-bugs mailing list