How do I iterate over enum members at runtime?
Jonathan M Davis
jmdavisProg at gmx.com
Sat Apr 9 15:01:08 PDT 2011
> What the.. I was sure mixin wouldn't work in a foreach loop.
Whyever not? mixins work in most places. I believe that the problem is that
they have to be a whole expression or statement rather than just a piece of
one, so sometimes you can't use a mixin for something small and have to put
more of the code in a mixin, but string mixins do work in most places.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list