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

Ketmar Dark <ket...@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ket...@ketmar.no-ip.org
         Resolution|---                         |INVALID

--- Comment #2 from Ketmar Dark <ket...@ketmar.no-ip.org> ---
structs are value types, so compiler is free to move 'em (i.e. just memcpy
without calling postblit/dtor/ctor). this is a feature of value types. that's
why you should never store a pointer to stack-allocated struct, even if it is
guaranteed that the pointer will not outlive the struct itself.

i'm closing this bug as INVALID, but feel free to open an ER with the request
for better documentation for copy/move semantic.

--

Reply via email to