[Issue 1727] New: Associate Array Literals regression
Matti Niemenmaa
see_signature at for.real.address
Wed Dec 12 11:14:41 PST 2007
Jarrett Billingsley wrote:
> "Don Clugston" <dac at nospam.com.au> wrote in message
> news:fjoue2$o1o$1 at digitalmars.com...
>> d-bugmail at puremagic.com wrote:
>>> http://d.puremagic.com/issues/show_bug.cgi?id=1727
>>>
>>> Summary: Associate Array Literals regression
>>> Following does not compile:
>>> int[char[]] ca= [cast(char[])"asdf":1,cast(char[])"asdf1":2];
>> When did this ever compile? I think this is an unimplemented feature, not
>> a regression.
>>
>
> Uh, are you talking about AA literals? They've been in D since 1.014 (April
> 26).. this code works with D1.
It won't compile at global scope, and never has.
http://www.digitalmars.com/d/1.0/expression.html#AssocArrayLiteral
"An AssocArrayLiteral cannot be used to statically initialize anything."
--
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
More information about the Digitalmars-d-bugs
mailing list