
3 Sep
2007
3 Sep
'07
2:56 a.m.
Andrew Sutton wrote:
To start with, your definition of refactoring is incorrect - it simply preserves the external behavior of a program. I would also point out that in order to ensure that a program is correct it first has to be preprocessed, and parsed. Something as simple as renaming a function - which is a well-known refactoring - requires none of that.
Hmm, I wouldn't consider renaming a function a simple transformation, really. Consider overloading. You have to do full overload resolution (one of the most complex things in C++) in order to figure out whether a name in a given function call needs to be changed or not. Regards, Stefan -- ...ich hab' noch einen Koffer in Berlin...