In the
GetReflectedCopy
example we passed an argument by reference and we were not planning to
change it. We passed it only for convenience and speed. If you are not
planning to modify the value it is safer to use
const
keyword. You can rewrite the function like this:
Point GetReflectedCopy (
const Point &From )
{
Point Result;
Result.dX =
From.dY;
Result.dY =
From.dX;
return
Result;
}
The
const
keyword does not change the behavior of
GetReflectedCopy
but does make it safer – remember there are risks associated with pass
by reference. If by accident you try to change its value, the compiler
will complain and will not allow you to do this.
It is much easier to catch the problem when compiler complains rather
than let
GetReflectedCopy
to change its argument by mistake and then debug the problem later.
Alan Sturgess shared an excellent video he made using Tales Animator! You can still download Tales Animator here. Unfortunately it is only available for Wi
There is a prototype of simple online character designer available
HERE. It is only a prototype,
it does not contain many pieces yet but it can already generat
Web Cartoon Maker 1.5 is finally here! You can download it
HERE!
Here is what was updated in version 1.5:
Web Cartoon Maker Desktop Edition is now fully standal