I mean there is a lot of typo (for e.g. multiple ';' chars at the end of line, import std.stdio : writeln;;;)
on page 2,6,8,10,14 ...

On page 19:
static Vector fromPoint(float[2] point) {
import std.math;
Vector v;
float x = point[0];
float y= point[1];
v.magnitude = sqrt(x ^^ 2 + y ^^ 2);
v.direction = atan2(y, x);
return v;
}}} // this 3 brackets

Vector opBinary(string op : "+")(Vector rhs) const {
auto point = toPoint(), point2 = rhs.toPoint();
point[0] += point2[0];
point[1] += point2[1];];]; // here
return Vector.fromPoint(point);); // and here
}

That is what I  already found







Dne Tue, 27 May 2014 13:45:53 +0200 Adam D. Ruppe via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> napsal(a):

On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote:
I am  reading it now, but there is a lot of errata :(.

What do you mean?


--
Vytvořeno poštovní aplikací Opery: http://www.opera.com/mail/

Reply via email to