[Issue 14845] [REG 2.068] some rangified Char[] functions no longer take a static array

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 1 11:46:29 PDT 2015


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---

--- Comment #3 from Martin Nowak <code at dawg.eu> ---
(In reply to Walter Bright from comment #1)
> The trouble with such overloads is they produce a new instance for every
> different array size. This can result in an unnoticed blizzard of bloat.

Well than you mark that function as always inline.
It only slices that static array and forwards that.

> I think this should be marked as "wontfix".

Didn't we have a strong commitment to no longer break code?
We should add those overloads, but can deprecate them IMO.

(In reply to Kenji Hara from comment #2)

> And as my humble opinion, I feel a "rangified funciton" accepts *only*
> ranges.

Exactly rangified, those functions didn't took a ranges before and now they
*only* take ranges.

--


More information about the Digitalmars-d-bugs mailing list