Re: The joy of type aliasing and C
"Alen Ladavac" <[email protected]>
| Newsgroups | gmane.games.devel.general |
|---|---|
| Message-ID | <[email protected]> |
> I think the aliasing rules > make it easier to compete with fortran compilers here. Of course, I understand the reasoning on why hidden aliasing needs to reduced/eliminated. But if some part of code _needs_ to access the bit pattern of some data then there must be a legal way to tell the compiler "look, I'm doing something nasty here". Is there? > The problem with int x=*(int *)&f; is sort of side effect here. > I don't really know for sure why there must be a problem, > because the aliasing of the values is sort of obvious, and could > be deduced separately. Seconded. Alen ------------------------------------------------------- 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