[Issue 18638] The main override of std.range.zip could infer @nogc and nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 30 01:38:52 UTC 2018


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

--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/259cf754bb42ad30039c1b82ea6d43109ecc6c9b
Fix Issue 18638 - The main override of std.range.zip could infer @nogc and
nothrow

ZipShortest impl. a bit more efficient than Zip because doesn't need
switch statements with code for each stopping policy. Also in some cases
only needs to check one range for `empty` or `length` rather than all.
Also correctly handles `back` when ranges have unequal lengths.

https://github.com/dlang/phobos/commit/1db9cbedd8c1bf29256c60776b7cba214fb1cc0a
Merge pull request #6307 from n8sh/zip-shortest

Fix Issue 18638 - The main override of std.range.zip could infer @nogc and
nothrow
merged-on-behalf-of: Jack Stouffer <jack at jackstouffer.com>

--


More information about the Digitalmars-d-bugs mailing list