www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Why does foreach with __traits ignore ForeachTypeList's type ?

reply "Eyyub" <eyyub.pangearaion gmail.com> writes:
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
Aug 04 2012
parent reply "Eyyub" <eyyub.pangearaion gmail.com> writes:
It looks like the problem is TypeTuple :

http://dpaste.dzfl.pl/de2264dd
Aug 04 2012
parent reply "bearophile" <bearophileHUGS lycos.com> writes:
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
Aug 04 2012
parent "Eyyub" <eyyub.pangearaion gmail.com> writes:
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 !
Aug 04 2012