Article View: net.lang.c
Article #9679Re: Must casting destroy lvalueness?
From: John Gilmore
Date: Wed, 29 Oct 1986 05:41
Date: Wed, 29 Oct 1986 05:41
16 lines
1110 bytes
1110 bytes
One interesting thing for people who don't understand this issue to do is
to ask yourself what the compiler should do for a construct like:
int i = 17;
((double)i)++;
Again, don't post your favorite answer to the net. Just think about it.
PS: When you're done that one, try:
double i = 17;
((int)i)++;
--
John Gilmore {sun,ptsfa,lll-crg,ihnp4}!hoptoad!gnu jgilmore@lll-crg.arpa
Overheard at a funeral: "I know this may be an awkward time, but do
you recall him ever mentioning source code?" -- Charles Addams
Technical Details
Message-ID:
<1244@hoptoad.uucp>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!sri-spam!sri-unix!hplabs!qantel!ptsfa!hoptoad!gnuReferences:
<4617@brl-smoke.ARPA> <657@dg_rtp.UUCP> <61@cartan.Berkeley.EDU>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!sri-spam!sri-unix!hplabs!qantel!ptsfa!hoptoad!gnu From: gnu@hoptoad.uucp (John Gilmore) Newsgroups: net.lang.c Subject: Re: Must casting destroy lvalueness? Message-ID: <1244@hoptoad.uucp> Date: Wed, 29-Oct-86 00:41:23 EST Article-I.D.: hoptoad.1244 Posted: Wed Oct 29 00:41:23 1986 Date-Received: Thu, 30-Oct-86 22:34:51 EST References: <4617@brl-smoke.ARPA> <657@dg_rtp.UUCP> <61@cartan.Berkeley.EDU> Organization: Nebula Consultants in San Francisco Lines: 16