[Issue 7361] No documentation for front tuple expansion in foreach over range

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 31 02:11:55 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=7361

--- Comment #3 from Vlad Levenfeld <vlevenfeld at gmail.com> ---
I'm not sure its such an anti-feature - I keep having "cannot infer argument
types" bugs using foreach on custom ranges, and zipping them with an
enumeration sequence beforehand seems a pleasant nice enough workaround.

(To be fair this may be fixed in 2.067 but I don't know because 2.067 segfaults
on my codebase and I haven't had time to hunt down the cause yet.)

In any case I feel it should either be documented or removed because it caught
me by surprise and took a little bit of time to figure out what was going on,
mainly because the lack of documentation.

--


More information about the Digitalmars-d-bugs mailing list