References

andrea9940 no at mail.plz
Fri Sep 20 04:18:03 PDT 2013


> Output:
> ----
> CTor A with 42
> CTor A with 23
> CTor A with 65
> Value call with A::65
> DTor A with 65
> CTor A with 1337
> Value call with A::1337
> DTor A with 1337
> Ref call with A::42
> DTor A with 23
> DTor A with 42
> ----
>
> No Postblit call.

The beahvior is correct but at assembly level the compiler still 
creates a copy on the stack.

D code: http://pastebin.com/sTLhnNdV
Disassembly: http://pastebin.com/5emmwqJc

I'll post a bug report. Thanks for everything.


More information about the Digitalmars-d-learn mailing list