Bug 14394 – byGrapheme does not preserve bidirectional ranges

Status
NEW
Severity
minor
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-04-02T14:13:28Z
Last change time
2024-12-01T16:24:15Z
Assigned to
No Owner
Creator
Dicebot
Moved to GitHub: phobos#10124 →

Comments

Comment #0 by public — 2015-04-02T14:13:28Z
void main() { import std.range, std.uni; auto range = "abcde".byGrapheme.retro(); } Error: template std.range.retro cannot deduce function from argument types !()(Result), candidates are: /usr/include/dlang/dmd/std/range/package.d(182): std.range.retro(Range)(Range r) if (isBidirectionalRange!(Unqual!Range)) Looks like byGrapheme degrades bidirectional ranges into input ranges.
Comment #1 by robert.schadek — 2024-12-01T16:24:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10124 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB