digitalmars.D.bugs - [Issue 16674] New: Clarify lifetime of pointer to AA entry
- via Digitalmars-d-bugs (23/23) Nov 08 2016 https://issues.dlang.org/show_bug.cgi?id=16674
https://issues.dlang.org/show_bug.cgi?id=16674 Issue ID: 16674 Summary: Clarify lifetime of pointer to AA entry Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dlang.org Assignee: nobody puremagic.com Reporter: shachar shemesh.biz SomeType[SomeOtherType] aa; ... SomeType* aap = aKey in aa; The lifetime of aap needs to be clarified. In particular with respect to: * Removal of aKey from the aa * Removal of another element from the aa * Addition of another element to the aa * Modification of an existing element in the aa with "aa[key] = something" * Modification of this element in the aa with "aa[aKey] = something". --
Nov 08 2016