Re: Input-line reverser



On Sat, 31 Dec 2005 00:06:22 GMT, in comp.lang.c , "Mike Wahler"
<mkwahler@xxxxxxxxxxxx> wrote:

>
>"Mark McIntyre" <markmcintyre@xxxxxxxxxxx> wrote in message
>news:g5ibr111ajddk27gbggg7u93fhum2pegh1@xxxxxxxxxx
>> On Fri, 30 Dec 2005 15:26:25 GMT, in comp.lang.c , "Mike Wahler"
>> <mkwahler@xxxxxxxxxxxx> wrote:
>>
>>>
>>>"Richard Heathfield" <invalid@xxxxxxxxxxxxxxx> wrote in message
>>>
>>>> The reason it's not a valid C program is that it attempts to modify
>>>
>>>evaluate, not modify. Modifying (i.e. assigning to it) would be OK
>>
>> Not all modification is assignment. Consider if the modification were
>> for example ++ or +=.
>
>Both those operators evaluate their operands.

Agreed. My point was that you said, still visible above, that
modifying would be ok since it is the same as assigning. This isn't
correct.
Mark McIntyre
--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
.



Relevant Pages

  • Re: define side effects
    ... niklaus@gamebox.net wrote: ... Assigning this truncated value ... # Accessing a volatile object, modifying an object, ...
    (comp.lang.c)
  • Re: When is "const" really const?
    ... Rudy Velthuis schrieb: ... But since you are not modifying p, that shouldn't matter. ... Assigning to r1.TopLeft should COPY the values of p to r1, ... But if your parameter p is the same as r1 or r2, you ARE modifying p. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Input-line reverser
    ... > Mark McIntyre said: ... Modifying (i.e. assigning to it) would be OK ... But ++ doesn't only modify. ... Prev by Date: ...
    (comp.lang.c)
  • Re: Types
    ... It is my impression that Mark McIntyre was saying that it'd be ... fairly trivial to implement a string addition operator in C. ... lifetime, ... assigning the result of the addition to a file-scope object ...
    (comp.lang.c)
  • Re: @_ aliasing
    ... by assigning them to lexically scoped vars unless you're sure ... you want to change the aliased variables. ... Prev by Date: ...
    (comp.lang.perl.misc)