[Issue 12404] Zip.back is wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 16 19:11:37 UTC 2018


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

Nathan S. <n8sh.secondary at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |n8sh.secondary at hotmail.com

--- Comment #5 from Nathan S. <n8sh.secondary at hotmail.com> ---
The code from OP currently prints "Tuple!(int, int, int)(1, 1, 1)" because of
changes in https://github.com/dlang/phobos/pull/6307. This only applies to
`zip` without an runtime StoppingPolicy argument, which implicitly uses
StoppingPolicy.shortest, and only when the argument ranges support random
access and/or slicing. (So it doesn't fix the problem with strings.)

--


More information about the Digitalmars-d-bugs mailing list