February 26, 2014 [phobos] [D-Programming-Language/phobos] 301b42: Fix issue 12007 - cartesianProduct does'nt work wi... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: 301b42f0de6444db0e03067bbe4f899a41ba4fb2 https://github.com/D-Programming-Language/phobos/commit/301b42f0de6444db0e03067bbe4f899a41ba4fb2 Author: monarchdodra <monarchdodra@gmail.com> Date: 2014-02-26 (Wed, 26 Feb 2014) Changed paths: M std/range.d Log Message: ----------- Fix issue 12007 - cartesianProduct does'nt work with ranges of immutables https://d.puremagic.com/issues/show_bug.cgi?id=12007 This makes a tweak to `Zip`'s `save`: Now, it *builds* a new `Zip` object from the saved ranges, rather than assigning each range individually. This gives 2 advantages: 1. Better support for `save` (which doesn't actaully guarantee assignability) 2. Avoids useless `opAssign` overhead Commit: 189d64433ff9429cba386725179f7abf88d4b512 https://github.com/D-Programming-Language/phobos/commit/189d64433ff9429cba386725179f7abf88d4b512 Author: monarchdodra <monarchdodra@gmail.com> Date: 2014-02-26 (Wed, 26 Feb 2014) Changed paths: M std/range.d Log Message: ----------- Simplify Zip's constructor Commit: 8d800e59ccec7b39f6bb55d088fc84f9e04b2a37 https://github.com/D-Programming-Language/phobos/commit/8d800e59ccec7b39f6bb55d088fc84f9e04b2a37 Author: Dmitry Olshansky <dmitry.olsh@gmail.com> Date: 2014-02-26 (Wed, 26 Feb 2014) Changed paths: M std/range.d Log Message: ----------- Merge pull request #1897 from monarchdodra/12007-2 Fix issue 12007 - cartesianProduct doesn't work with ranges of immutable... Compare: https://github.com/D-Programming-Language/phobos/compare/7bd1ae66c376...8d800e59ccec |
Copyright © 1999-2021 by the D Language Foundation