block scope?

Paul Rubin http
Sat Apr 7 17:44:30 EDT 2007


aleax at mac.com (Alex Martelli) writes:
> Thus the following example does not compile:
> class Test {
>         public static void main(String[] args) {
>                 int i;
>                 for (int i = 0; i < 10; i++)

I'm ok with this; at the minimum, I think such nesting should produce
a warning message.



More information about the Python-list mailing list