[Issue 10092] New: Renaming std.range.chunks as std.range.chunked
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 16 04:55:16 PDT 2013
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 at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list