>I understand the scoping of variables in C#. But this is not what Stephane is asking for. He's asking for a way to specify a default var scoping in his program.
>
>His problem occurs when he declares a var, then spells it differently when he uses it. Because he is not forced to declare all vars, he got bit by a typo.
>
>He could also print out a var crossref report and look for typos there.
>
I guess I misinterpreted your response. I "heard", "No languages I know of default to local scoping", not, "No languages I know of allow you to change the default scoping".