This code  used to work under dmd2.052:

const int[] foo = [1,2,3,4];

void main(string[] argv)
{
        int[] bar = foo;
}

now the compiler says: main.d(30): Error: cannot implicitly convert expression (foo) of type const(int[]) to int[]

but i checked the old behaviour and the compiler made a foo.dup implicitly. was this an intended fix or is it a regression now ? This makes dwt2 not able to compile with the current beta.

On 08.05.2011 02:10, Walter Bright wrote:


On 5/6/2011 9:47 PM, Walter Bright wrote:

http://ftp.digitalmars.com/dmd2beta.zip


New beta up with missing files added, updated changelog, and new
std.parallelism.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to