https://issues.dlang.org/show_bug.cgi?id=19906
Andrei Alexandrescu changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=19906
--- Comment #5 from Manu ---
Which is relieving, I was worried for a second there!
--
https://issues.dlang.org/show_bug.cgi?id=19906
--- Comment #4 from Manu ---
I suspect the `is` was an accident.
--
https://issues.dlang.org/show_bug.cgi?id=19906
--- Comment #3 from Sprink ---
Just to clarify the logic would still be incorrect.
It would always be true unless there was some kind of error in __traits().
--
https://issues.dlang.org/show_bug.cgi?id=19906
Sprink changed:
What|Removed |Added
CC||sprink.nore...@gmail.com
--- Comment #2 from
https://issues.dlang.org/show_bug.cgi?id=19906
Manu changed:
What|Removed |Added
CC||turkey...@gmail.com
--- Comment #1 from Manu ---
Oh
https://issues.dlang.org/show_bug.cgi?id=19904
Andrei Alexandrescu changed:
What|Removed |Added
CC||and...@erdani.com
--- Comment #5 from
https://issues.dlang.org/show_bug.cgi?id=19906
Issue ID: 19906
Summary: __traits(isRef) always yields false for auto ref
parameter
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
https://issues.dlang.org/show_bug.cgi?id=19903
Manu changed:
What|Removed |Added
Severity|major |blocker
--- Comment #2 from Manu ---
Raising this
https://issues.dlang.org/show_bug.cgi?id=19904
--- Comment #4 from Manu ---
Right, you unwrapped my example. You need another layer to see it all go wrong.
--
https://issues.dlang.org/show_bug.cgi?id=19904
--- Comment #3 from ki...@gmx.net ---
Ah, due to this rval->lval conversion when calling an `auto ref` function, the
ctor is called with an lvalue arg, even if the emplace-arg was originally an
rvalue, and that then leads to a superfluous copy (and
https://issues.dlang.org/show_bug.cgi?id=19904
--- Comment #2 from ki...@gmx.net ---
This is what I mean:
import core.stdc.stdio;
struct S
{
this(this) { printf("postblit\n"); }
~this() { printf("dtor\n"); }
}
void foo(S s) { printf("rvalue\n"); }
void foo(ref S s) {
https://issues.dlang.org/show_bug.cgi?id=19904
ki...@gmx.net changed:
What|Removed |Added
CC||ki...@gmx.net
--- Comment #1 from
https://issues.dlang.org/show_bug.cgi?id=705
RazvanN changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=492
RazvanN changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=463
RazvanN changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=18729
Dlang Bot changed:
What|Removed |Added
Keywords||pull
--- Comment #1 from Dlang Bot ---
https://issues.dlang.org/show_bug.cgi?id=19116
Seb changed:
What|Removed |Added
CC||bell@gmail.com
--- Comment #8 from Seb ---
***
https://issues.dlang.org/show_bug.cgi?id=15469
Seb changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=18145
Seb changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
20 matches
Mail list logo