You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import std.stdio;
import std.range;
void main()
{
auto str = "石室詩士施氏,嗜獅,誓食十獅。"d;
auto indStr = str.indexed(recurrence!"n"(0));
//core.exception.RangeError@std.range(6177): Range violationwriteln(indStr);
}
This code prints the string correctly, but it seems that it doesn't stop when the end of the string is reached.
石室詩士施氏,嗜獅,誓食十獅。
The text was updated successfully, but these errors were encountered:
monkeyworks12 reported this on 2013-08-07T13:51:29Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=10774
Description
import std.stdio; import std.range; void main() { auto str = "石室詩士施氏,嗜獅,誓食十獅。"d; auto indStr = str.indexed(recurrence!"n"(0)); //core.exception.RangeError@std.range(6177): Range violation writeln(indStr); } This code prints the string correctly, but it seems that it doesn't stop when the end of the string is reached. 石室詩士施氏,嗜獅,誓食十獅。The text was updated successfully, but these errors were encountered: