mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
![]() The range algorithms moveFront, moveBack, and moveAt do not accept all valid input ranges, bidirectional ranges, and random-access ranges, respectively. Their inclusion as methods of the InputRange, BidirectionalRange, and RandomAccessFinite interfaces previously caused InputRangeObject, which implements those interfaces, to fail to compile when instantiated with certain valid input, bidirectional, and random-access ranges. These methods should not have been included in their respective interfaces to begin with, but removing them now would break existing code. Instead, as a workaround, InputRangeObject now implements these methods by throwing an exception if the wrapped range does not support them. |
||
---|---|---|
.. | ||
interfaces.d | ||
package.d | ||
primitives.d |