Using std.stdio.File in a class

Adam D. Ruppe destructionator at gmail.com
Tue Apr 8 08:58:39 PDT 2014


On Tuesday, 8 April 2014 at 15:52:23 UTC, Spacen Jasset wrote:
> scope Stream file = new File(filename);

That's a std.stream.File which is a class (implementing the 
Stream interface) which is a different animal from 
std.stdio.File, which is a struct.


More information about the Digitalmars-d-learn mailing list