Re: scope of variables
- Posted by jaygade Jan 01, 2011
- 2465 views
For the record, I have no interest in "declaring variables willy-nilly". I like to declare them at the top of a file or at the top of a procedure.
I haven't found the need to mask a file-level variable in a procedure, but it makes sense to me since other languages work that way. Since unnamed blocks are like procedures I think that it should work the same way.