Think about the lifetime of local variables, the disambiguity of their names and the fact that multiple instances of a certain function can be active at the same time and you've got your answer.
Always learn from history, to be sure you make the same mistakes again...