Re: The joy of type aliasing and C

"Alen Ladavac" <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <[email protected]>
>In C99, it's section 6.5, paragraph 7, where it specifically says "An
>object shall have its stored value accessed only by an lvalue
>expression that has one of the following types:"

>In the C++ 98 standard, 3.10 paragraph 15, there's the statement "If a
>program attempts to access the stored value of an object through an
>lvalue of other than one of the following types the behaviour is
>undefined:"

Didn't see the whole thing, so perhaps this is a stupid question, but... is
there any particular reason that they mention an lvalue? Because, as I
understand, we are accessing the stored value of a float through an rvalue of
type int, not lvalue of type int. (I mean, it could have just as well been
(const int*), wouldn't make a difference.)

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
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.