https://issues.dlang.org/show_bug.cgi?id=13038

Jonathan M Davis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan M Davis <[email protected]> ---
It is invalid to allocate memory in a class destructor, which to!string is
going to do unless it's passed a string. It's probably working when you call
destroy, because then the destructor is not being called by the GC, but the GC
does not allow you to do anything with it when it's running a collection -
which means that class destructors cannot manipulate the GC heap. It might be
annoying at times, but it's a limitation that we have to live with.

--

Reply via email to