Re: The joy of type aliasing and C

"Colin Fahey" <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <07f801c3cd07$138bcca0$0301a8c0@pc350>
>>> Oy, freakin' language lawyers.  I posted to comp.std.c about
>>> this, and  they followups basically focused on these two things:
>>>
>>> - reading a float back as an int is ILLEGAL!!!  UNCLEAN, WE CAST
>>>    THEE OUT!!!
>>>
>>> - I said "type alias" when the correct terminology is
>>>    "type punning".  I'm such a retard.


In the End Days they will be judged as they have judged, and
there will be weeping and gnashing of teeth.  Yea, even the
floats will be read back as ints in the vortex of chaos,
where the C specification will be engulfed in a lake of fire
until time itself is vaporized.

Or maybe not.

In any case, Google seems to have a lot of relevant links.
(keywords: "type punning")  I won't pretend to understand the
subject, but these links looked interesting:

http://www.talkaboutprogramming.com/group/comp.lang.c.moderated/messages/26015.html

http://www.ethereal.com/lists/ethereal-dev/200309/msg00342.html

http://wwwold.dkuug.dk/JTC1/SC22/WG14/www/docs/dr_283.htm

Hee, hee!  "clean up a bunch of type punning warnings" in Quake 2:

http://www.quakeforge.net/cgi-bin/viewcvs.cgi/quake2/src/cmd.c
http://zuul.quakeforge.net/list-archives/quake2-cvs/2003-July/000243.html








-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.