[Issue 12007] cartesianProduct does'nt work with ranges of immutables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 28 03:39:59 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12007
monarchdodra at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |monarchdodra at gmail.com
Summary|cartesianProduct does'nt |cartesianProduct does'nt
|work with immutable ranges |work with ranges of
| |immutables
--- Comment #3 from monarchdodra at gmail.com 2014-01-28 03:39:53 PST ---
Changing name: The problem isn't "immutable ranges" (which technically aren't
even ranges btw), but having ranges of immutable.
The problem mainly lies in a combination `Repeat`, the `isForwardRange` trait,
and `Zip`
The problem is that while `Repeat!(immutable(int))` *is* saveable, the type is
not *assignable*. This could be partially fixed inside Repeat for objects that
are "CompatibleUnqual".
It also sparks the questions of:
Should saveable ranges necessarily be assignable?
Now, with that said, zip makes an assignment in its save, when I'm pretty sure
it could simply do construction (but this is a more of a generic issue
actually).
In any case, *both* should be solvable pretty easily.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list