strip() and formattedRead()
realhet
real_het at hotmail.com
Wed Mar 21 18:44:12 UTC 2018
Hi,
I just got this problem and since an hour can't find answer to it.
float x,y,z;
if(formattedRead(" vertex -5.1 2.4 3.666".strip, "vertex %f
%f %f", x, y, z)){
writefln("v(%f, %f, %f)", x, y, z);
}
Compiling this I get an error: "formattedRead: cannot deduce
arguments from (string, string, float, float, float)"
When I don't use .strip(), just a string literal or a string
variable it works good.
(It fails also when I'm using UFCS)
What did I do wrong?
More information about the Digitalmars-d-learn
mailing list