Re: scope of variables
- Posted by useless Dec 31, 2010
- 2631 views
jaygade said...
I think that it should be changed. The current behavior is inconsistent with other languages and unintuitive. One would expect a block started by a loop or an decision block to work the same as a block defined by a procedure or function.
I disagree. If i need a variable, i declare it at the top of the procedure. Gosh, you can declare junk[1..5000] and prolly not run out of nested "decision block" junk[x], and you have the feature that all the junk is available outside that level too.
useless