Another way would be to operate at block- instead of line-level and just not allow local variable to be shared between blocks. Ie
int i = 5 ↵ printf("%i", i) ↵
{ ↵ int i = 5; ↵ printf("%i", i); ↵ } ↵
Another way would be to operate at block- instead of line-level and just not allow local variable to be shared between blocks. Ie
would fail, but would not.