Bug 21015 – aa.byKeyValue, byKey provide mutable reference access to keys

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-07-05T18:56:15Z
Last change time
2024-12-07T13:40:30Z
Keywords
pull
Assigned to
No Owner
Creator
Steven Schveighoffer
Moved to GitHub: dmd#17408 →

Comments

Comment #0 by schveiguy — 2020-07-05T18:56:15Z
e.g.: int[int] aa; aa[5] = 6; foreach(ref k; aa.byKey) k = 10; writeln(aa); // [10:6] foreach(kvp; aa.byKeyValue) kvp.key = 11; writeln(aa); // [11:6]
Comment #1 by dlang-bot — 2021-03-15T07:15:36Z
@wolframw created dlang/druntime pull request #3397 "Fix Issue 21015 - aa.byKeyValue, byKey provide mutable reference acce…" fixing this issue: - Fix Issue 21015 - aa.byKeyValue, byKey provide mutable reference access to keys https://github.com/dlang/druntime/pull/3397
Comment #2 by robert.schadek — 2024-12-07T13:40:30Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17408 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB