static foreach considered

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 8 15:15:31 PDT 2015


On Monday, 8 June 2015 at 20:02:11 UTC, Andrei Alexandrescu wrote:
> I'm trying to collect together motivating examples and to 
> figure out the semantics of the feature.

maybe not completely related, but I made a blog post on using 
CTFE to unroll foreach at compiletime

https://rsw0x.github.io/post/switch-unrolling/

I find myself often writing recursive templates for compile-time 
generation of constructs that could be done cleaner with static 
foreach.


More information about the Digitalmars-d mailing list