[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lexical scoping rule



Isn't that exactly what special variables are for? To defeat lexical scoping?
Actually, scope is not the important thing here (the references to the varia-
bles are all in the right lexical scope. Extent is. To make a closure, you
need variables of indefinite extent, but special vars have dynamic extent.

Yes, it can be a problem. That's why special variables are usually named *xyz*.
     Daniel.