[Issue 17897] Postblit is not called for temporary structures in the function parameters

2017-10-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17897 --- Comment #4 from Simen Kjaeraas --- (In reply to Steven Schveighoffer from comment #1) > Postblit is not called for moves. You're misreading the bug report (not surprising, as it was marked incorrectly). Expanded example:

[Issue 17897] Postblit is not called for temporary structures in the function parameters

2017-10-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17897 Richard Cattermole changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 17897] Postblit is not called for temporary structures in the function parameters

2017-10-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17897 --- Comment #2 from Steven Schveighoffer --- Sorry, I didn't mean to commit so early. A postblit is not called for a move, which is done for rvalues being sent into a function: import std.stdio; struct S { this(this) {

[Issue 17897] Postblit is not called for temporary structures in the function parameters

2017-10-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17897 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED