Thread overview | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 16, 2007 Problems with new DMD | ||||
---|---|---|---|---|
| ||||
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 :) Charma |
August 16, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charma | 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. -- Remove ".doesnotlike.spam" from the mail address. |
August 16, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Deewiant | 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!
|
August 16, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charma | On 8/16/07, Charma <Motoko_Kusanagi@web.de> wrote: > Oh thank you, i confused the experimental 2-alpha versions with the > "normal" ones... > THanks for the quick help! I really think D 1.0 should be the default page, instead of 2.0. Currently it's a bit confusing. -- Anders |
August 16, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders Bergh | Anders Bergh wrote:
>
> I really think D 1.0 should be the default page, instead of 2.0. Currently it's a bit confusing.
>
I strongly agree on this!
|
August 16, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomas Lindquist Olsen | Tomas Lindquist Olsen schrieb:
> Anders Bergh wrote:
>> I really think D 1.0 should be the default page, instead of 2.0.
>> Currently it's a bit confusing.
>>
>
> I strongly agree on this!
Yeah, that was the reason i chose 2.0 by mistake...
|
August 17, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomas Lindquist Olsen | Tomas Lindquist Olsen wrote:
> Anders Bergh wrote:
>> I really think D 1.0 should be the default page, instead of 2.0.
>> Currently it's a bit confusing.
>>
>
> I strongly agree on this!
I strongly third this!
--bb
|
August 17, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomas Lindquist Olsen | Tomas Lindquist Olsen wrote:
> Anders Bergh wrote:
>> I really think D 1.0 should be the default page, instead of 2.0.
>> Currently it's a bit confusing.
>>
>
> I strongly agree on this!
I strongly agree as well. Experimental, unfinished products should not be the default on the front page.
|
August 17, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Myron Alexander | Also in agreement. I love experimental software, but for a beginner it is hopelessly confusing.
Myron Alexander wrote:
> Tomas Lindquist Olsen wrote:
>> Anders Bergh wrote:
>>> I really think D 1.0 should be the default page, instead of 2.0.
>>> Currently it's a bit confusing.
>>>
>>
>> I strongly agree on this!
>
> I strongly agree as well. Experimental, unfinished products should not be the default on the front page.
|
August 17, 2007 Re: Problems with new DMD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tristam MacDonald Attachments: | Tristam MacDonald wrote:
> Also in agreement. I love experimental software, but for a beginner it is hopelessly confusing.
>
> Myron Alexander wrote:
>> Tomas Lindquist Olsen wrote:
>>> Anders Bergh wrote:
>>>> I really think D 1.0 should be the default page, instead of 2.0. Currently it's a bit confusing.
>>>>
>>>
>>> I strongly agree on this!
>>
>> I strongly agree as well. Experimental, unfinished products should not be the default on the front page.
Agreed some more, just for good measure.
--downs
|
Copyright © 1999-2021 by the D Language Foundation