[Issue 1858] std.string find signature is not string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 21 07:49:41 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1858





------- Comment #1 from andrei at metalanguage.com  2008-02-21 09:49 -------
The signatures I'm seeing in the current release's codebase (2.0) are all using
"in char[]", which is equivalent to "scope const char[]", which accepts
mutable, const, and invariant arrays. Could you show a code sample that has a
problem? FWIW, this compiles and runs fine on my system:

import std.string;

void main()
{
    string a = "abc", b = "bc";
    assert(find(a, b) == 1);
}


Andrei


-- 



More information about the Digitalmars-d-bugs mailing list