file rawRead and rawWrite in chunks example

Jay Norwood via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 8 19:07:07 PDT 2015


On Sunday, 9 August 2015 at 00:50:16 UTC, Ali Çehreli wrote:
>         // NOTE: No need to tell rawRead the type as double
>         iota(10, 20_000_000 + 10, n)
>             .each!(a => f.rawRead(dbv));
>     }
>
> Ali

Your f.rawRead(dbv) form compiles, but f.rawRead!(dbv) results in 
an error msg in  compiler error in 2.067.1. The 
f.rawRead!(double)(dbv) form works.

Error: template instance rawRead!(dbv) does not match template 
declaration rawRead(T)(T[] buffer)	





More information about the Digitalmars-d-learn mailing list