[Issue 8900] Using zip with char[] sometimes fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 13 09:00:33 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8900



--- Comment #6 from github-bugzilla at puremagic.com 2012-12-13 09:00:22 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/a00c3c825c863c0c53cb69ab907c7be539bf51e4
Fix bug 8900 - Zip with infinite range fails.

`std.range.Zip` contains a `Tuple`, whose `toString()` function calls
`formatElement` which eventually calls this function, leading to a static call
to `walkLength` on infinite ranges. Since pul request 880, `walkLength` doesn't
work with infinite ranges, so it fails to compile.

This change ensures that `walkLength` is called with only valid range types.

Bug: http://d.puremagic.com/issues/show_bug.cgi?id=8900

https://github.com/D-Programming-Language/phobos/commit/259cd23d67b8025eebc5c46e3756e2c98337a663
Merge pull request #901 from Poita/bug8900

Fix bug 8900 - Zip with infinite char range fails.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list