Temporary objects as function parameters or when-is-this-shit-going-to-end?

ketmar ketmar at ketmar.no-ip.org
Fri Oct 13 10:44:14 UTC 2017


Jack Applegame wrote:

> Compiler creates struct on the stack and silently (without postblitting 
> and destruction old object) moves it to another address. Is it normal?
yes.

> WAT??? Compiler creates struct on the stack copies it without 
> postblitting and destructs both objects.
and this is the real bug.


More information about the Digitalmars-d-learn mailing list