Re: D's metaprogramming could be flawed

2016-01-23 Thread maik klein via Digitalmars-d
On Saturday, 23 January 2016 at 12:13:16 UTC, maik klein wrote: On Friday, 22 January 2016 at 14:19:30 UTC, rsw0x wrote: [...] I think that should work but it only works because you do an implicit conversion with get which is quite nice. [...] I forgot to show what `tref` was in my last c

Re: D's metaprogramming could be flawed

2016-01-23 Thread maik klein via Digitalmars-d
On Friday, 22 January 2016 at 14:19:30 UTC, rsw0x wrote: On Friday, 22 January 2016 at 13:28:00 UTC, maik klein wrote: On Friday, 22 January 2016 at 13:21:11 UTC, rsw0x wrote: On Friday, 22 January 2016 at 12:57:54 UTC, maik klein wrote: ... You're looking for AliasSeq in std.meta, it's a tu

Re: D's metaprogramming could be flawed

2016-01-22 Thread rsw0x via Digitalmars-d
On Friday, 22 January 2016 at 13:28:00 UTC, maik klein wrote: On Friday, 22 January 2016 at 13:21:11 UTC, rsw0x wrote: On Friday, 22 January 2016 at 12:57:54 UTC, maik klein wrote: ... You're looking for AliasSeq in std.meta, it's a tup—er, finite ordered list of types :) I am already awar

Re: D's metaprogramming could be flawed

2016-01-22 Thread Timon Gehr via Digitalmars-d
On 01/22/2016 01:57 PM, maik klein wrote: It seems that D doesn't have a way to express C++'s fold expression/template expansions. For example in C++ I could write std::make_tuple(std::ref(ts)...); and it would expand like std::make_tuple(std::ref(t1), std::ref(t2), ... , std::ref(tn)); ...

Re: D's metaprogramming could be flawed

2016-01-22 Thread maik klein via Digitalmars-d
On Friday, 22 January 2016 at 13:21:11 UTC, rsw0x wrote: On Friday, 22 January 2016 at 12:57:54 UTC, maik klein wrote: ... You're looking for AliasSeq in std.meta, it's a tup—er, finite ordered list of types :) I am already aware of AliasSeq as I have written above. But I could have misuse

Re: D's metaprogramming could be flawed

2016-01-22 Thread rsw0x via Digitalmars-d
On Friday, 22 January 2016 at 12:57:54 UTC, maik klein wrote: ... You're looking for AliasSeq in std.meta, it's a tup—er, finite ordered list of types :)

D's metaprogramming could be flawed

2016-01-22 Thread maik klein via Digitalmars-d
This will be a small rant that might be completely unjustified and it is not meant to talk ill about D. I am new to D and I run into a road blocking issue https://issues.dlang.org/show_bug.cgi?id=10541 So I set myself to fixing it. Asking around the irc, it seems that the biggest problem was