[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lexical scoping rule
- To: GRAME@AppleLink.Apple.com, INFO-MCL@CAMBRIDGE.APPLE.com
- Subject: Re: lexical scoping rule
- From: Ranson <ranson@LANNION.CNET.fr>
- Date: 08 Apr 92 12:03:00 GMT
- Cc: ranson@LANNION.CNET.fr
- X400-received: by /PRMD=inria/ADMD=atlas/C=FR/; Relayed; 08 Apr 92 12:04:31+0200
- X400-received: by /PRMD=CNET/ADMD=ATLAS/C=FR/; Relayed; 08 Apr 92 12:03:00 GMT
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.