dmd 1.062 and 2.047 release

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jun 14 11:29:53 PDT 2010


bearophile wrote:
> I am back.
> 
> From the v2.047 changelog:
>> std.conv: Added file and line information to conversion errors; added brackets '[' and ']' around arrays and associative arrays as defaults; added emplace() for non-class types.<
> 
> This program:
> 
> import std.stdio: writeln;
> import std.conv: to;
> void main() {
>     int[] a = [1, 2, 3];
>     writeln(to!string(a));
>     writeln(a);
> }
> 
> 
> Prints:
> [1 2 3]
> 1 2 3
> 
> 
> But I think if they produce the same default output.
> 
> Like:
> [1, 2, 3]
> [1, 2, 3]
> 
> --------------------------
> 
> I have reopened bug 4109 and in the meantime Shin Fujishiro has closed it again. He looks efficient :-)
> 
> Bye,
> bearophile

Thank you guys. Indeed that was my intent.

Andrei


More information about the Digitalmars-d-announce mailing list