From: Andre B. <and...@gm...> - 2002-12-30 10:57:55
|
I just played arround with SplitTemp and found that bug: Performing the action on the following code will result in wrong code --------------- { int a = 0; if (b==0) a=2; b = a; } ------- Result: { int NEWNAME = 0; if (b==0) int a=2; b = a; } This is not compilable and wrong. This always appears when the assignment is inside some deeper scope. The declaration that is added, needs to be placed in front of the statement where the assignment is placed "inside". Correct Result: { int NEWNAME = 0; int a=2 if (b==0) ; b = a; } -- Andre |