[Issue 9335] Dtors are not called for dynamic arrays initialized by literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 28 05:43:07 PDT 2013


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com
          Component|DMD                         |druntime


--- Comment #4 from yebblies <yebblies at gmail.com> 2013-06-28 22:43:04 EST ---
This is a druntime problem.  The destructor should be called for each element
in the array when it is collected by the GC.

There is no need to call the destructor or postblit when moving the stack
allocated structs to the heap, it is legal to move them with memcpy.

-- 
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