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() {
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
Andrei Alexandrescu:
Thank you guys. Indeed that was my intent.
What do you mean?
Bye,
bearophile
What do you mean?
I have now understood :-)
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:
---
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()