[Issue 18807] RefRange behaves very differently for Input Ranges and Forward Ranges
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 30 12:30:35 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18807
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
There are 2 issues here. One is the same from 14619 -- the compiler is assuming
opSlice on a valid range is a no-op.
The second issue is that for some reason opSlice is defined in RefRange iff
save is defined. That makes no sense.
Fixing either of these issues will fix the problem I think.
--
More information about the Digitalmars-d-bugs
mailing list