Fantastic work!
Small issue I've found:
http://mutecode.com/eecourse/downloads/E...rse_EN.pdf
page 19
Code:
Str myString = 42 ; // will generate an error
Few releases ago, I've added more constructors to the Str class, so this works OK now.
The problem was originally related to NULL macro used as pointer, but being actually 0 integer, however since I've switched to 'null' (macro to nullptr) then this is no longer an issue.
Code:
myString = "score: " + 42; // correct
myString = 42 + "score: "; // wrong
actually both are wrong, because if in C++ you do
"score: " + 42
Then the result is actually a pointer to the string (char*), 42 characters later.
Str str;
str+42; // but this is OK, because this is Str operator+
S+"score: " + 42 // this is also OK
Page 42:
Code:
How to get a random color? The RGB values which make up a color have a value between
0 and 255. To randomize a color, try this:
Color myColor;
myColor.set(Random (255) , Random (255) , Random (255));
better to use Random(256), it will give 0..255
And pages 90..92 still have some untranslated text.
Hope this helps