Re: [nem-en] incorrect side effect of ++ operator

rzyj at o2.pl rzyj at o2.pl
Tue Sep 28 10:59:08 CEST 2004


>traversal functions for parsetree. But it seems very hackish... 
>and sometimes would need to do complex transoformations
>
>foo (i, ++i)  ====>   ++i; foo (i, i);    ?

Why not:

  foo (i, {i = i + 1; i})

?

Anyway, your example is incorrect since it changes the semantics - transformed code passes foo two identical values, whereas the original one two different.

-- 
rzyjontko






More information about the devel-en mailing list