[Issue 16674] New: Clarify lifetime of pointer to AA entry

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 8 21:16:16 PST 2016


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 at puremagic.com
          Reporter: shachar at 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".

--


More information about the Digitalmars-d-bugs mailing list