[Issue 7199] std.string.indexof cannot be compiled with -inline
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 5 12:38:07 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7199
--- Comment #7 from Walter Bright <bugzilla at digitalmars.com> 2012-02-05 12:38:07 PST ---
Trass3r's example fails:
R1 find(alias pred = "a == b", R1, R2)(R1 haystack, R2 needle)
{
return simpleMindedFind!pred(haystack, needle);
}
R1 simpleMindedFind(alias pred, R1, R2)(R1 haystack, R2 needle)
{
bool haystackTooShort()
{
return true;
}
return haystack;
}
sizediff_t indexOf(Char1, Char2)(const(Char1)[] s, const(Char2)sub)
{
const(Char1)[] balance = find!({})(s, sub);
return -1;
}
string extStr;
void main()
{
extStr.indexOf("bla");
}
--
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