etc.curl: Formal review begin
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Aug 31 15:29:06 PDT 2011
On 8/31/11 4:05 PM, dsimcha wrote:
> void copy(in char[] source, in char[] dest) {
> // Pray that all the d'tor bugs in DMD are fixed so these files
> // get closed automatically.
>
> auto destHandle = File(dest, "wb");
> foreach(chunk; File(source).byChunkAsync(chunkSize)) {
> destHandle.rawWrite(chunk);
> }
> }
That's the spirit! We *must* get this rock-solid and working to a tee.
Andrei
More information about the Digitalmars-d
mailing list