April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tom S | Tom S wrote: > Walter Bright wrote: >> Bug fixes, some of them rather nasty. >> >> http://www.digitalmars.com/d/changelog.html >> >> http://ftp.digitalmars.com/dmd.1.013.zip > > Thank you thank you thank you thank you :D > > Our project finally compiles, links and runs! It turned out that my DDL port was just fine and we're finally able to make the switch to 1.013 :) The Optlink crash has disappeared as well :) Now I'll have to do a few tweaks to remove -d and -v1, but now that I know DMD generates valid code, it should be a breeze. > > Walter.cookies++; > > Tom, any way you could email me on that? I'm starting to re-kindle DDL to get it finalized for post 1.0 compatibility and ELF support. -- - EricAnderton at yahoo |
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Great release, thanks! Now I no longer need to use older DMD versions. - Chris |
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pragma | Pragma wrote: > Tom S wrote: >> Walter Bright wrote: >>> Bug fixes, some of them rather nasty. >>> >>> http://www.digitalmars.com/d/changelog.html >>> >>> http://ftp.digitalmars.com/dmd.1.013.zip >> >> Thank you thank you thank you thank you :D >> >> Our project finally compiles, links and runs! It turned out that my DDL port was just fine and we're finally able to make the switch to 1.013 :) The Optlink crash has disappeared as well :) Now I'll have to do a few tweaks to remove -d and -v1, but now that I know DMD generates valid code, it should be a breeze. >> >> Walter.cookies++; >> >> > > Tom, any way you could email me on that? I'm starting to re-kindle DDL to get it finalized for post 1.0 compatibility and ELF support. > Nevermind. I just checked my mailbox. :) -- - EricAnderton at yahoo |
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Roberto Mariottini | Roberto Mariottini a écrit : > Walter Bright wrote: >> Bug fixes, some of them rather nasty. >> >> http://www.digitalmars.com/d/changelog.html > > > Issue #1147: Typo in phobos/std/file.d: 4069 should be 4096 > > > > phobos/std/file.d line 1422: > > size_t BUFSIZ = 4069 * 16; > > > What about having some predefined suffix to represent common two's powers? > > int x = 4_k; // == 4 * 1024 == 4_096 > int y = 8_M; // == 8 * 1024_k == 8_388_608 > int z = 2_G; // == 2 * 1024_M == 2_147_483_648 Why would 'k' be 1024 instead of the normal 1000? As an aside, I like the syntax <number>_<type> as a syntax sugar for <type>(<number>), this allow easy to read computation with units: nb_apple = 10_apple + 20_apple; regards, renoX > > and obviously: > > size_t BUFSIZ = 16 * 4_k; > > This could prevent many typos. > > Ciao |
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | I get a /d/src/phobos/std/format.d(1459): found ':' when expecting ',' /d/src/phobos/std/format.d(1459): found ':' when expecting ',' when trying to compile with the new version. The offending lines are in a unittest and seem to try to use associative array literals? |
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | Christian Kamm wrote:
> I get a
>
> /d/src/phobos/std/format.d(1459): found ':' when expecting ','
> /d/src/phobos/std/format.d(1459): found ':' when expecting ','
>
> when trying to compile with the new version. The offending lines are in a unittest and seem to try to use associative array literals?
Are you sure you are using dmd 1.013? Compiling std.format directly, with -unittest works just fine.
This example contains the same line, using AA literals, and compiles for me:
---
import std.stdio;
void main()
{
char[5][int] aa = ([3:"hello", 4:"betty"]);
writefln(aa);
}
---
Output:
[3:[h,e,l,l,o],4:[b,e,t,t,y]]
|
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | Christian Kamm wrote:
> I get a
>
> /d/src/phobos/std/format.d(1459): found ':' when expecting ','
> /d/src/phobos/std/format.d(1459): found ':' when expecting ','
>
> when trying to compile with the new version. The offending lines are in a unittest and seem to try to use associative array literals?
It probably means you're trying to compile with a new phobos and an older dmd, i.e. your dmd hasn't been updated.
|
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | > It probably means you're trying to compile with a new phobos and an older dmd, i.e. your dmd hasn't been updated.
Ah, I'm very sorry: I forgot to upgrade to the new rebuild!
I didn't see anything about AA literals in the changelog though - when have they been added?
Cheers,
Christian
|
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | Christian Kamm wrote:
> I didn't see anything about AA literals in the changelog though - when have they been added?
There was some code added in 1.012, some in 1.013 (some of us are sick enough to actually diff the source). They're probably not announced yet because there are some basics missing, like allowing strings for keys.
|
April 20, 2007 Re: DMD 1.013 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to torhu | torhu wrote:
> Christian Kamm wrote:
>> I didn't see anything about AA literals in the changelog though - when have they been added?
>
> There was some code added in 1.012, some in 1.013 (some of us are sick enough to actually diff the source). They're probably not announced yet because there are some basics missing, like allowing strings for keys.
They're still incomplete.
|
Copyright © 1999-2021 by the D Language Foundation