Re: Announcement: Axiom, a Forth Based Universal Game Programming System



Krishna Myneni wrote:
By "rewrite" I mean that the C++ files have to be examined, and data which is
declared as "float" must be changed to "double". Similar changes must me made to
the class declarations. I'm not sure that a simple global replace will suffice.
For example, there may be explicit casts of double numbers to float, which
should be removed. Also, casts from float to double will be redundant and should
be removed. I would be uneasy with a global replace, without doing a careful
examination of the code in parallel.

Incidentally, this is why most C/C++ programmers heed the advice to use an abstracted data type from the start. This is most commonly done with "int" since it can vary in size depending on platform. But switching between float and double can present the same issues.

typedef double Real;

That (or a better symbol name) in a common header file addresses the problem.


.