In message <[EMAIL PROTECTED]>, Aaron "Castironpi" Brady wrote:
> [Wikipedia] says: > "dynamic scoping can be dangerous and almost no modern languages use > it", but it sounded like that was what closures use. Closures will use whatever the language says they use. LISP used dynamic binding, but this caused some interesting problems as mentioned above. Perl allows both, depending on whether the local is declared with "local" or "my". Python uses only lexical, though there's probably some way to get dynamic behaviour if you want. :) -- http://mail.python.org/mailman/listinfo/python-list