Problems with new DMD

Charma Motoko_Kusanagi at web.de
Wed Aug 15 23:57:47 PDT 2007


Deewiant schrieb:
> Charma wrote:
>> Hello,
>> I am into D for many weeks now. I started with dmd 1.010 and never
>> thought about updating into the newest version. So now i have the
>> problem that my programs don't want to compile. The most basic commands
>> cause problems... e.g. I can't compile:
>>
>> char[] testText = "Hello world!";
>>
>> It always cauzes me the error:
>> Error: cannot implicitly convert expression ("Hello world!") of type
>> invariant char[12u] to char[]
>>
>> if I type char[12], it does work but it's no longer changeable, so i get
>> errors in other points when i try to change the text in testText...
>>
>> Anyone an idea what the hell this is about?!?
>> Thanks & sorry for my engrish :)
>>
> 
> You're using 2.0, with its new const semantics. It's fairly experimental, I
> suggest sticking with the latest 1.0 version:
> http://www.digitalmars.com/d/1.0/changelog.html
> 
> Read http://www.digitalmars.com/d/final-const-invariant.html and
> http://www.digitalmars.com/d/const.html to understand what's going on.
> 


Oh thank you, i confused the experimental 2-alpha versions with the 
"normal" ones...
THanks for the quick help!


More information about the Digitalmars-d-learn mailing list