[Issue 7361] No documentation for front tuple expansion in foreach over range
https://issues.dlang.org/show_bug.cgi?id=7361 Nick Treleaven changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Nick Treleaven --- Initial docs were added in https://github.com/dlang/dlang.org/pull/3001. Improvements: https://github.com/dlang/dlang.org/pull/3832 --
[Issue 7361] No documentation for front tuple expansion in foreach over range
https://issues.dlang.org/show_bug.cgi?id=7361 Iain Buclaw changed: What|Removed |Added Priority|P2 |P3 --
[Issue 7361] No documentation for front tuple expansion in foreach over range
https://issues.dlang.org/show_bug.cgi?id=7361 Andrei Alexandrescuchanged: What|Removed |Added Keywords||bootcamp CC||and...@erdani.com --
[Issue 7361] No documentation for front tuple expansion in foreach over range
https://issues.dlang.org/show_bug.cgi?id=7361 Nick Treleavenchanged: What|Removed |Added CC||ntrel-...@mybtinternet.com --- Comment #5 from Nick Treleaven --- While it's not documented in the spec, this feature is already documented in an example in std.range.enumerate: http://dlang.org/phobos/std_range.html#.enumerate foreach (lineNum, line; stdin.byLine().enumerate(1)) stdout.writefln("line #%s: %s", lineNum, line); --
[Issue 7361] No documentation for front tuple expansion in foreach over range
https://issues.dlang.org/show_bug.cgi?id=7361 Vlad Levenfeld vlevenf...@gmail.com changed: What|Removed |Added CC||vlevenf...@gmail.com --
[Issue 7361] No documentation for front tuple expansion in foreach over range
https://issues.dlang.org/show_bug.cgi?id=7361 --- Comment #2 from bearophile_h...@eml.cc --- So I think it's better to not document this anti-feature. --
[Issue 7361] No documentation for front tuple expansion in foreach over range
https://issues.dlang.org/show_bug.cgi?id=7361 --- Comment #3 from Vlad Levenfeld vlevenf...@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. --
[Issue 7361] No documentation for front tuple expansion in foreach over range
http://d.puremagic.com/issues/show_bug.cgi?id=7361 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #1 from bearophile_h...@eml.cc 2013-03-26 06:05:28 PDT --- In Issue 9817 I have suggested to remove that syntax, and replace it with something more explicit and more flexible. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---