static foreach is deferred

Trass3r mrmocool at gmx.de
Thu Nov 19 02:53:19 PST 2009


Andrei Alexandrescu schrieb:
> Walter and I agreed that static foreach, although present in TDPL, poses 
> enough new problems to warrant its deferral to post-D2.
> 

Please don't tell me this would solve the

foreach (member; __traits (allMembers, Class))
{
     foreach (overload; __traits (getVirtualFunctions, Class, member))
     {
         // do stuff
     }
}

problem. I've been waiting for this for ages ;)



More information about the Digitalmars-d mailing list