March 10, 2014 [Issue 4085] Steps toward a static foreach | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=4085 --- Comment #12 from bearophile_hugs@eml.cc 2014-03-10 01:22:14 PDT --- This suggests the introduction of a static foreach, so the current ER is not needed: http://wiki.dlang.org/DIP57 So I think the static foreach part of this proposal could be considered closed and replaced by the DIP. Something like Iota is still needed because static foreach doesn't replace fully the foreach on tuples and you static foreach(0 .. n) can't use a "step" value anyway. On the other hand in the pull requests staticIota was replaces by a toTypeTuple (https://github.com/D-Programming-Language/phobos/pull/1472 but I don't know its current static) so eventually this whole issue could be closed. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation