YAAO  (yet another assignment operator)
    Ed Gould 
    ed at mtxinu.UUCP
       
    Thu Dec 27 07:52:22 AEST 1984
    
    
  
> ...
> Consider that 
> 		X <binop>= Y;		(call this form 1)
> is exactly the same statement as
> 		X = X <binop> Y;	(call this form 2)
> ...
But, of course, form 1 and form 2 are not quite the same thing.
The semantic difference is that in form 1 X is evaluated once,
and it's evaluated twice in 2.  If there are side effects, this
can cause great damage to the algorithm.  So, just translating
1 into 2 isn't right.
-- 
Ed Gould
{ucbvax,decvax}!mtxinu!ed
    
    
More information about the Comp.lang.c
mailing list