fullyQualifiedName fails on template

2014-01-23 Thread Øivind
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!

Re: fullyQualifiedName fails on template

2014-01-24 Thread Dicebot
https://d.puremagic.com/issues/show_bug.cgi?id=10502

Re: fullyQualifiedName fails on template

2014-01-24 Thread Timon Gehr
On 01/24/2014 03:20 AM, "Øivind" wrote: Is fullyQualifiedName supposed to work on templates? Yes. The following fails: Compiler bug.

Re: fullyQualifiedName fails on template

2014-01-24 Thread Dicebot
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"

Re: fullyQualifiedName fails on template

2014-01-24 Thread Martin Cejp
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

Re: fullyQualifiedName fails on template

2014-01-24 Thread David Nadlinger
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

Re: fullyQualifiedName fails on template

2014-01-24 Thread Martin Cejp
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.

Re: fullyQualifiedName fails on template

2014-01-24 Thread Øivind
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

Re: fullyQualifiedName fails on template

2014-01-25 Thread Timon Gehr
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,

Re: fullyQualifiedName fails on template

2014-01-25 Thread Dicebot
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