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


Max Samukha <samu...@voliacable.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |samu...@voliacable.com


--- Comment #8 from Max Samukha <samu...@voliacable.com> 2010-11-18 03:39:17 
PST ---
So what is the verdict? Should we simply specify that struct destructors are
not automatically called except in RAII and remove the struct-in-class special
case?

BTW, there are other problems (serious IMO):

auto ss = new S[10];
ss.length = 5;
delete ss; 

Destructors are not called on the last 5 elements.

----
auto ss = new S[10];
ss ~= ss;
delete ss;

We have a nasty problem when destructors are called on the appended elements
because postblits was not run for them during append.

etc

Essentially, operations on arrays of structs with postblits/dtors defined are
currently unusable.

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

Reply via email to