[ODE] ODE on Linux IA-64?

Steve Baker sjbaker1 at airmail.net
Thu Feb 26 17:58:48 MST 2004


Gerhard Wesp wrote:
>>pointers (and thus has a chance of working on segmented memory, too). These
>>types are ALWAYS the right choice on each platform, so you don't need to #if
>>anything.
> 
> 
> Did I miss something?  I see no reason why one would want to cast
> between pointers and integers. 

No - that's a really evil programming practice.  Just about every C
programming book on the planet tells you not to do it.

If you really, truly *must* put either an integer or a pointer into
one place in memory, you should use a 'union' to do it.

---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1 at airmail.net>    WorkEmail: <sjbaker at link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net    http://tuxaqfh.sf.net
            http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----



More information about the ODE mailing list