digitalmars.D.bugs - [Issue 8166] New: retro() of splitter() too
- d-bugmail puremagic.com (28/28) May 30 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8166
- d-bugmail puremagic.com (12/30) Oct 22 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8166
http://d.puremagic.com/issues/show_bug.cgi?id=8166
Summary: retro() of splitter() too
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
This is an operation I'd like to do:
import std.range, std.algorithm;
void main() {
auto p = std.array.splitter("this is a message").retro();
}
DMD 2.060alpha gives:
test.d(3): Error: template std.range.retro does not match any function template
declaration
...\dmd2\src\phobos\std\range.d(1292): Error: template std.range.retro(Range)
if (isBidirectionalRange!(Unqual!(Range))) cannot deduce template function from
argument types !()(Result)
I think a splitter of a narrow string can be a BidirectionalRange.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 30 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8166
monarchdodra gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |monarchdodra gmail.com
AssignedTo|nobody puremagic.com |monarchdodra gmail.com
This is an operation I'd like to do:
import std.range, std.algorithm;
void main() {
auto p = std.array.splitter("this is a message").retro();
}
DMD 2.060alpha gives:
test.d(3): Error: template std.range.retro does not match any function template
declaration
...\dmd2\src\phobos\std\range.d(1292): Error: template std.range.retro(Range)
if (isBidirectionalRange!(Unqual!(Range))) cannot deduce template function from
argument types !()(Result)
I think a splitter of a narrow string can be a BidirectionalRange.
I'll take this.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 22 2012








d-bugmail puremagic.com