[Issue 5575] Problem with a map() of a const uniq()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 3 15:41:46 PST 2012


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



--- Comment #1 from bearophile_hugs at eml.cc 2012-02-03 15:41:44 PST ---
This seems related, DMD 2.058head:


import std.algorithm, std.array;
void main() {
    auto s1 = "hello";
    auto m1 = map!(c => c)(s1);
    auto a1 = array(m1); // OK
    auto s2 = "hello"d;
    auto m2 = map!(c => c)(s2);
    auto a2 = array(m2); // line 8, Error
}


...\dmd2\src\phobos\std\array.d(55): Error: result[i] isn't mutable
test.d(8): Error: template instance std.array.array!(Result) error
instantiating

-- 
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