Undocumented Feature in Repeat?
Posted: Thu Jul 02, 2015 4:53 pm
Seems i've got too much time on my hands.
While playing around with the shadowed variable bug I found out that the repeat statement creates its own local variable that does not need to be declared even in Strict Compilation Mode.
The extra bit of info is that variable can then be used later (but not before) outside the repeat loop in the handler.
It is totally scoped Locally so there are no side effects other than to use or not use?
I went through the docs and it doesn't mention this "feature" maybe it's just "known"
Regards Lagi
While playing around with the shadowed variable bug I found out that the repeat statement creates its own local variable that does not need to be declared even in Strict Compilation Mode.
The extra bit of info is that variable can then be used later (but not before) outside the repeat loop in the handler.
It is totally scoped Locally so there are no side effects other than to use or not use?
I went through the docs and it doesn't mention this "feature" maybe it's just "known"
Regards Lagi