I have just wasted 2 hours tracking down a bug that was caused by this flexibility and have had similar experiences in the past.
In C++ and Java its disallowed/disallowable - presumably cos its considered bad form or more likely to be a typo than genuine code.
In reply to Prohibiting redeclaration of lexicals in inner scope
by JohnLon
in thread Prohibiting redeclaration of lexicals in inner scope
by JohnLon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |