digitalmars.D.bugs - [Issue 10092] New: Renaming std.range.chunks as std.range.chunked
- d-bugmail puremagic.com (30/30) May 16 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10092
- d-bugmail puremagic.com (12/12) Oct 02 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10092
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=10092
bearophile_hugs eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
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








d-bugmail puremagic.com