Why is tcl broken?

Marco Antoniotti marcoxa at copernico.parades.rm.cnr.it
Thu Jul 1 02:54:44 EDT 1999


jenglish at flightlab.com (Joe English) writes:

> Marco Antoniotti wrote:
> 
> >BTW. Is TCL statically or dynamically scoped?
> 
> Neither, really, since Tcl doesn't have nested procedures, lambda
> expressions, "let/letrec", local bindings or the like.
> 
> I'd describe Tcl as "namespace-scoped": there is an open-ended set
> of top-level "namespace" environments, plus a distinguished "global"
> environment.  In addition, each Tcl "proc" has its own local environment,
> into which variables from other environments can be explicitly imported
> via "variable", "global", explicit namespace reference, or "upvar".
> "upvar" gives you something *sort* of like dynamic scope, but not
> exactly.

Now, who was saying that Common Lisp macros are a source of
inconsistencies? :)

Cheers

-- 
Marco Antoniotti ===========================================
PARADES, Via San Pantaleo 66, I-00186 Rome, ITALY
tel. +39 - 06 68 10 03 17, fax. +39 - 06 68 80 79 26
http://www.parades.rm.cnr.it/~marcoxa




More information about the Python-list mailing list