> Well and I don't get what we gain with this? We NEED that variable all
> over (so no case we wouldn't need it), so why allocating it X times if
> just 1 time is enough!

It is simply cleaner and for some people (including me) simpler to read.
Once the variable is gone, it's gone. No side effects possible...

It's certainly a matter of style but as a principle the scope of anything
should be as small as possible. This is like avoiding global variables.
If you have a large function, declaring all variables at the beginning
is like using "semi global" variables...

Andre'

-- 
Andre' Poenitz ........................................ [EMAIL PROTECTED]

Reply via email to