Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: John Passaniti <nntp@xxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 16:14:00 GMT
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.
.
- References:
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: dreamwafer
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: Marcel Hendrix
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: dreamwafer
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: Krishna Myneni
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: slava@xxxxxxxxx
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: Krishna Myneni
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- Prev by Date: Re: What were "shadow blocks"?
- Next by Date: Re: What were "shadow blocks"?
- Previous by thread: Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- Next by thread: Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- Index(es):