[Issue 24348] Inaccurate documentation for hasSlicing with infinite range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 20 22:36:13 UTC 2024


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@pbackus created dlang/phobos pull request #8898 "Update docs for hasSlicing
with inifnite range" fixing this issue:

- Update docs for hasSlicing with inifnite range

  The requirement for opSlice on an infinite range to return the result of
  take or takeExactly was removed in commit c828a08b64, which was included
  in Phobos 2.067.0, released in March 2015. However, the documentation
  was never updated to take this change into account.

  This change updates the documentation and adds a unit test for the "new"
  behavior.

  Fixes bugzilla issue 24348.

https://github.com/dlang/phobos/pull/8898

--


More information about the Digitalmars-d-bugs mailing list