My D book is now officially coming soon

Daniel Kozak via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue May 27 04:56:49 PDT 2014


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 at 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/



More information about the Digitalmars-d-announce mailing list