|
From: Baptiste L. <gai...@fr...> - 2002-11-29 21:55:27
|
I finally added scope support for RenameTemp. It's seems to work just
fine:
{
double x = getPrice();
x += x * rate;
if ( needTaxes() )
{
int x = x * taxeRate;
setTaxes( x );
}
return x * getQuantity();
}
Is correctly refactored to (rename the first occurence of x to price):
{
double price = getPrice();
price += price * rate;
if ( needTaxes() )
{
int x = price * taxeRate;
setTaxes( x );
}
return price * getQuantity();
}
Things are really looking good...
Baptiste.
---
Baptiste Lepilleur <gai...@fr...>
http://gaiacrtn.free.fr/
|