Re: dmd 1.062 and 2.047 release

2010-06-14 Thread bearophile
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() {

Re: dmd 1.062 and 2.047 release

2010-06-14 Thread Andrei Alexandrescu
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

Re: dmd 1.062 and 2.047 release

2010-06-14 Thread bearophile
Andrei Alexandrescu: Thank you guys. Indeed that was my intent. What do you mean? Bye, bearophile

Re: dmd 1.062 and 2.047 release

2010-06-14 Thread bearophile
What do you mean? I have now understood :-)

Re: dmd 1.062 and 2.047 release

2010-06-14 Thread Sean Kelly
torhu Wrote: I tried the example on page 406-407 of the book (copying stdin to stdout using message passing). I don't mean to be a killjoy, but it doesn't compile. :( I'm using the latest pdf version of the book, and dmd 2.047. I get this: ---

Re: dmd 1.062 and 2.047 release

2010-06-14 Thread torhu
On 15.06.2010 00:45, Sean Kelly wrote: stdin.byChunk uses a mutable buffer that's overwritten for each chunk so you can't ask for an immutable ubyte[] in the foreach line. Here's the version of that sample I used to test (13.7): import std.algorithm, std.concurrency, std.stdio; void main()