block scope?

Alex Martelli aleax at mac.com
Sat Apr 7 19:43:46 EDT 2007


Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:

> 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.

Yes, a warning could surely be a reasonable compromise.


Alex



More information about the Python-list mailing list