Thread overview
Why does foreach with __traits ignore ForeachTypeList's type ?
Aug 04, 2012
Eyyub
Aug 04, 2012
Eyyub
Aug 04, 2012
bearophile
Aug 04, 2012
Eyyub
August 04, 2012
Hi,

As I said on #d, foreach with __traits seems to ignore ForeachTypeList's type.

Look at this ! :p

http://dpaste.dzfl.pl/0885e1de

Wtf ?

Thanks
August 04, 2012
It looks like the problem is TypeTuple :

http://dpaste.dzfl.pl/de2264dd
August 04, 2012
Eyyub:
> It looks like the problem is TypeTuple :
>
> http://dpaste.dzfl.pl/de2264dd

Fixed in DMD 2.060?
http://d.puremagic.com/issues/show_bug.cgi?id=5435

Bye,
bearophile
August 04, 2012
On Saturday, 4 August 2012 at 14:27:44 UTC, bearophile wrote:
> Eyyub:
>> It looks like the problem is TypeTuple :
>>
>> http://dpaste.dzfl.pl/de2264dd
>
> Fixed in DMD 2.060?
> http://d.puremagic.com/issues/show_bug.cgi?id=5435
>
> Bye,
> bearophile
Oh, indeed.

Sorry I did not look at the changelog before posting.

2.060 looks cool.

Thanks bearophile !