[Issue 1727] New: Associate Array Literals regression

Matti Niemenmaa see_signature at for.real.address
Wed Dec 12 12:06:36 PST 2007


Jarrett Billingsley wrote:
> "Matti Niemenmaa" <see_signature at for.real.address> wrote in message 
> news:fjpbvo$1s6a$1 at digitalmars.com...
>> 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."
> 
> Then it's not a bug in any way, is it?  It's stupid, but according to spec. 
> And it's not a regression because nothing changed.  It works fine in 2.008 
> too. 

I don't have a 2.0 installation handy so I don't know, but yes: if it works fine
when doing the initialization in a static constructor, for instance, then it's
not a bug.

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi


More information about the Digitalmars-d-bugs mailing list