DMD 1.013 release

torhu fake at address.dude
Fri Apr 20 11:12:56 PDT 2007


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]]



More information about the Digitalmars-d-announce mailing list