Is fullyQualifiedName supposed to work on templates? The
following fails:
struct MsgPack(T ...) {
}
struct TestPoint {
float x, y;
}
alias TestPack = MsgPack!TestPoint;
void main() {
import std.traits;
import std.stdio;
//writeln(fullyQualifiedName!
https://d.puremagic.com/issues/show_bug.cgi?id=10502
On 01/24/2014 03:20 AM, "Øivind" wrote:
Is fullyQualifiedName supposed to work on templates?
Yes.
The following fails:
Compiler bug.
On Friday, 24 January 2014 at 09:38:24 UTC, Timon Gehr wrote:
The following fails:
Compiler bug.
More like "Phobos bug that is very hard to fix because of
compiler bug"
On Friday, 24 January 2014 at 09:40:32 UTC, Dicebot wrote:
On Friday, 24 January 2014 at 09:38:24 UTC, Timon Gehr wrote:
The following fails:
Compiler bug.
More like "Phobos bug that is very hard to fix because of
compiler bug"
The bug hasn't been updated in half a year. Can we help with
On Friday, 24 January 2014 at 14:08:45 UTC, Martin Cejp wrote:
It's quite an issue if you want to copy a method with a mixin
and you can't reliably stringify the return type.
In general, you can't reliably stringify types for use in string
mixins anyway. Just insert ReturnType!(…) or whatever
On Friday, 24 January 2014 at 14:31:01 UTC, David Nadlinger wrote:
In general, you can't reliably stringify types for use in
string mixins anyway.
May I ask why?
Anyway, thanks for the workaround.
On Friday, 24 January 2014 at 09:40:32 UTC, Dicebot wrote:
On Friday, 24 January 2014 at 09:38:24 UTC, Timon Gehr wrote:
The following fails:
Compiler bug.
More like "Phobos bug that is very hard to fix because of
compiler bug"
Looking at the code, it does not seem like it pays any attent
On 01/25/2014 02:06 AM, "Øivind" wrote:
On Friday, 24 January 2014 at 09:40:32 UTC, Dicebot wrote:
On Friday, 24 January 2014 at 09:38:24 UTC, Timon Gehr wrote:
The following fails:
Compiler bug.
More like "Phobos bug that is very hard to fix because of compiler bug"
Looking at the code,
On Saturday, 25 January 2014 at 08:53:19 UTC, Timon Gehr wrote:
alias Seq(T...)=T;
struct A(T...){}
struct B{}
struct C{}
alias T=A!(B,C);
static if(is(T==X!Y,alias X,Y...)){
static assert(__traits(isSame, X, A));
static assert(is(Y==Seq!(B,C)));
}
It won't work for templated functi
10 matches
Mail list logo