D-Programming-Language/phobos — pull request #630 by jmdavis (2012-06-13 08:48:15+00:00)
Title: Fix for issue# 8233.

> std.array.array fails to compile with ranges of immutable elements which have a length property

This wasn't compiling:

import std.array;

void main()
{
dstring d = "hello world";
auto e = array(d);
}

but instead gave this error

> /home/jmdavis/dmd2/linux/bin/../../src/phobos/std/array.d(55): Error: result[i]
isn't mutable
q.d(6): Error: template instance std.array.array!(immutable(dchar)[]) error
instantiating