Non-obvious name bindings

Andrew Dalke dalke at dalkescientific.com
Wed Nov 14 22:39:50 EST 2001


Rainer Deyke:
>This will not compile on a conforming C++ compiler.

More historically, about 5 years ago C++ switched from having

  for(int i=0; ...) {
  }

put the 'i' in the scope outside the 'for' loop to only
being valid inside the for loop.

                    Andrew






More information about the Python-list mailing list