Thread overview
[Issue 13882] Use compile-time length check in std.algorithm.copy
[Issue 13882] Smarter std.algorithm.copy
Jan 24, 2015
yebblies
May 02, 2019
Nathan S.
May 02, 2019
Dlang Bot
Dec 17, 2022
Iain Buclaw
January 24, 2015
https://issues.dlang.org/show_bug.cgi?id=13882

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com

--- Comment #1 from yebblies <yebblies@gmail.com> ---
Implementing issue 13185 would make this possible, without specializing for static arrays.  Length of slices of static arrays can be found via const-folding, and if matching length was checked in an in-contract it could be reported at compile-time.

--
May 02, 2019
https://issues.dlang.org/show_bug.cgi?id=13882

Nathan S. <n8sh.secondary@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |n8sh.secondary@hotmail.com
            Summary|Smarter std.algorithm.copy  |Use compile-time length
                   |                            |check in std.algorithm.copy

--
May 02, 2019
https://issues.dlang.org/show_bug.cgi?id=13882

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@n8sh created dlang/phobos pull request #6991 "Fix Issue 13882 - Use compile-time length check in std.algorithm.copy" fixing this issue:

- Fix Issue 13882 - Use compile-time length check in std.algorithm.copy

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

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13882

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--