www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8527] New: `object.destroy` doesn't destroy interfaces

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8527

           Summary: `object.destroy` doesn't destroy interfaces
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: ASSIGNED
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: verylonglogin.reg gmail.com
        ReportedBy: verylonglogin.reg gmail.com



14:05:01 MSD ---
---
interface I { }

class A: I { string s = "A"; this() {} }

void main() {
    auto a = new A;
    a.s = "asd";
    I i = a;
    destroy(i);
    assert(a.s == "A"); // fails
}
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 09 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8527




14:10:48 MSD ---
https://github.com/D-Programming-Language/druntime/pull/286

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 09 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8527




Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/22e74c5d183b466efec34b7f8f770458579871dc
Fix Issue 8527 - `object.destroy` doesn't destroy interfaces

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 09 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8527


klickverbot <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |code klickverbot.at
         Resolution|                            |FIXED



---
Fixed in Git master.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 21 2012