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
