Reading UTF32 files

Markus Dangl danglm at in.tum.de
Thu Aug 10 11:55:40 PDT 2006


> BTW: that should probably read "auto content = file.read();" with 
> parens, since otherwise the 'auto' will try to take the function reference

Just a note:
I think all methods that don't take parameters can be called without 
parens, just like you normally use properties, but it's a bit clearer to 
use parens here (because "read" should actually be used as a method).
To take the reference you'd have to use sth like "auto pointer = 
&file.read" ...



More information about the Digitalmars-d-learn mailing list