www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10092] New: Renaming std.range.chunks as std.range.chunked

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10092

           Summary: Renaming std.range.chunks as std.range.chunked
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-05-16 04:55:14 PDT ---
Often the chunks() function has a name clash between std.stdio and std.range:


import std.stdio, std.range;
void main() {
    chunks("abcd"d, 2).writeln;
}


DMD 2.063beta2:

temp.d(3): Error: std.stdio.chunks at C:\dmd2\src\phobos\std\stdio.d(2311)
conflicts with std.range.chunks(Source)(Source source, size_t chunkSize) at
C:\dmd2\src\phobos\std\range.d(6517)
temp.d(3): Error: constructor std.stdio.chunks.this (File f, uint size) is not
callable using argument types (immutable(dchar)[], int)


So to solve this little problem I suggest to rename std.range.chunks as
std.range.chunked, and introduce an std.range.chunks alias that later will be
deprecated and then removed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 16 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10092


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from bearophile_hugs eml.cc 2013-10-02 04:58:14 PDT ---
Closed issue. This has solved the problem in a better way:
https://github.com/D-Programming-Language/phobos/compare/d744bec6d450...6924d3e6db54

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2013