Getting around the lack of foreach in CTFE

Adam D. Ruppe destructionator at gmail.com
Fri Mar 28 06:38:34 PDT 2014


On Friday, 28 March 2014 at 11:59:47 UTC, Colin Grogan wrote:
> I'm interested to hear peoples methods for getting around the 
> lack of foreach loops while using CTFE?

What, exactly are you trying to do? foreach does work in CTFE, 
though it will need to be wrapped in helper function that returns 
a regular value which is sometimes enough to get a lot done and 
sometimes not.


More information about the Digitalmars-d-learn mailing list