Re: [GD-General] The joy of type aliasing and C
Brought to you by:
vexxed72
From: Colin F. <cp...@ea...> - 2003-12-28 06:14:11
|
>>> 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 |