On 01/24/2011 04:45 PM, Andrej Mitrovic wrote:
Is this a bug?

import std.stdio;

string[string] values = ["abc":"abc", "def":"def"];

void main()
{
     string[string] values2 = ["abc":"abc", "def":"def"];
}


test.d(3): Error: non-constant expression ["abc":"abc","def":"def"]

What's non-constant about that expression?

Had the same issue, and yop, it's a bug, and filed: search the issue tracker.

Denis
--
_________________
vita es estrany
spir.wikidot.com

Reply via email to