AA bug..?

Simen Haugen simen at norstat.no
Wed Sep 26 06:13:30 PDT 2007


So its to get the init property to work.. The error message is certainly not 
very helpful, and this behaviour it is not documented.
Things like this should absolutly be documented as it's a bit hard to guess 
:)

Thanks for the help

"Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message 
news:fddlil$2fct$1 at digitalmars.com...
> "Simen Haugen" <simen at norstat.no> wrote in message 
> news:fddl53$2eai$1 at digitalmars.com...
>>I dont get it...
>>
>> I say "int[uint]". Key is of type uint, value is of type int. What does 
>> it need to check the element types for?
>
> This != initializer.  In this case the compiler doesn't even look at the 
> type of the variable you're declaring.  It's treating the initializer as 
> if it were a literal.  I wish the compiler _would_ see the type on the 
> LHS, but..
> 





More information about the Digitalmars-d mailing list