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: [email protected]
Reporter: [email protected]
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".
--