https://issues.dlang.org/show_bug.cgi?id=7957
--- Comment #1 from RazvanN ---
PR : https://github.com/dlang/phobos/pull/5780
--
https://issues.dlang.org/show_bug.cgi?id=17897
Issue ID: 17897
Summary: Зostbit is not called for temporary structures in the
function parameters
Product: D
Version: D2
Hardware: x86_64
OS: Linux
S
https://issues.dlang.org/show_bug.cgi?id=17897
Richard Cattermole changed:
What|Removed |Added
CC||alphaglosi...@gmail.com
Summ
https://issues.dlang.org/show_bug.cgi?id=17897
Richard Cattermole changed:
What|Removed |Added
Hardware|x86_64 |All
OS|Linux
https://issues.dlang.org/show_bug.cgi?id=17497
Martin Nowak changed:
What|Removed |Added
CC||c...@dawg.eu
--- Comment #1 from Martin Nowak
https://issues.dlang.org/show_bug.cgi?id=17897
Steven Schveighoffer changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
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) { writeln("postblit"); }
}
https://issues.dlang.org/show_bug.cgi?id=17897
Richard Cattermole changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
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:
import std.stdio;
stru
https://issues.dlang.org/show_bug.cgi?id=17897
Steven Schveighoffer changed:
What|Removed |Added
Keywords||wrong-code
Summary|Postbli
https://issues.dlang.org/show_bug.cgi?id=17897
--- Comment #6 from Steven Schveighoffer ---
Expected should read:
Bar.this(int):
fun:
Bar.~this():
--
https://issues.dlang.org/show_bug.cgi?id=17897
--- Comment #7 from Jack Applegame ---
(In reply to Steven Schveighoffer from comment #5)
> The bug in the example is that the destructor is called twice, not that
> postblit is not called.
Not exactly. In fact, it is important that the number of con
https://issues.dlang.org/show_bug.cgi?id=17897
--- Comment #8 from Steven Schveighoffer ---
I don't know if it's in the spec or not, but clearly, there is no reason for
the temporary not to be constructed in-place on the stack for passage into fun.
It does not need to construct it and then make a
https://issues.dlang.org/show_bug.cgi?id=17896
--- Comment #3 from Steven Schveighoffer ---
Anything that uses opCast is circumventing to's builtin mechanisms anyway as to
defers to the type "It knows better than me". It's no different here.
struct S1
{
string s;
auto opCast(T : Nullable!i
https://issues.dlang.org/show_bug.cgi?id=17596
alex.jercai...@gmail.com changed:
What|Removed |Added
CC||alex.jercai...@gmail.com
https://issues.dlang.org/show_bug.cgi?id=17896
--- Comment #4 from Jonathan M Davis ---
(In reply to Steven Schveighoffer from comment #3)
> Anything that uses opCast is circumventing to's builtin mechanisms anyway as
> to defers to the type "It knows better than me". It's no different here.
As
https://issues.dlang.org/show_bug.cgi?id=17891
--- Comment #4 from ki...@gmx.net ---
(In reply to Steven Schveighoffer from comment #3)
> Is there something to do with the GC running (assuming these are all backed
> by D code)? That would fit the pattern.
I silently hoped this wouldn't be the cas
https://issues.dlang.org/show_bug.cgi?id=17751
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment #1 from
https://issues.dlang.org/show_bug.cgi?id=17751
Iain Buclaw changed:
What|Removed |Added
CC||ibuc...@gdcproject.org
--- Comment #2 from Iai
19 matches
Mail list logo