int read(/+File inFile = stdin,+/ A...)(out A a) /+Uncommenting results
in: Error: arithmetic/string type expected for value-parameter, not
File+/
That would make inFile a template parameter, which obviously doesn't
make sense with objects, and I guess File is an object. This should work:
int r
On 5/11/2009 2:35 PM, grauzone wrote:
Tyro[a.c.edwards] wrote:
I am looking for a D version of scanf() but I'm sure there is no such
thing so I tried contrived one. I am sure I missed a slew of obvious
There's readf() in std.stream. I think you have to use std.cstream : din
to use it with stdi
Tyro[a.c.edwards] wrote:
I am looking for a D version of scanf() but I'm sure there is no such
thing so I tried contrived one. I am sure I missed a slew of obvious
There's readf() in std.stream. I think you have to use std.cstream : din
to use it with stdin.
int read(/+File inFile = stdin,
I am looking for a D version of scanf() but I'm sure there is no such
thing so I tried contrived one. I am sure I missed a slew of obvious
things and that this cannot be used for much more than a little toy on
my personal computer. I would like to make it usable for others so I am
asking for so