[Issue 6437] Refcounted calls dtor before ctor, never calls dtor for globals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 9 11:52:26 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6437


Rob Jacques <sandford at jhu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandford at jhu.edu


--- Comment #2 from Rob Jacques <sandford at jhu.edu> 2012-03-09 11:52:30 PST ---
I just tried the example in D 2.058 and the extra dtors appear to have been
fixed. The issue with globals and destruction still exists. For now, you can
work around the problem using 

static ~this() {  typeid(foo).destroy(&foo1); }

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


More information about the Digitalmars-d-bugs mailing list