Re: Input-line reverser




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

-Mike


.



Relevant Pages

  • Re: improving my code: array of references
    ... modify_variable() doesn't appear to modify anything, ... are you assigning its return value to the scalar passed as a parameter? ... Yes and in your example 1 above you are passing around lots of data twice. ... modify_variablesub to work with references. ...
    (perl.beginners)
  • Uploaded files to Portal server are corrupted
    ... Any reason why it is doing this? ... He posted an older version to the portal server again, ... steps "check out, modify, and check in", and it is happening again. ... Prev by Date: ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Input-line reverser
    ... Mark McIntyre said: ... >>> 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 ...
    (comp.lang.c)
  • Re: Input-line reverser
    ... Mike Wahler said: ... Modifying (i.e. assigning to it) would be OK ... and I did in fact say that "it attempts to modify the ... Prev by Date: ...
    (comp.lang.c)
  • Re: Perl Cookies
    ... The question explicitly said, for good reason, that I don't wish to use ... need to know, if that's the case, how they do work, so I can modify my ... Susan ... Prev by Date: ...
    (comp.lang.perl.misc)