Re: Scoping (was Re: Lambda binding solved?)

Rafael Bracho (rxb@lion.Eng.Sun.COM)
Mon, 7 Mar 1994 09:29:48 +0800

> Alas, this would break more code than you think: not only current, but
> also PointInPage, any other classes and functions you might define at
> the module level, and last-but-not-least any modules imported at the
> start of the module would be unreachable without a global statement!
> Unless you introduce CSNS (classic static nested scopes), but you
> don't seem to popose that here...

Touche', I think I was trying to introduce CSNS without actually
doing so. I shouldn't write propsals so early in the morning :-)

Re: 'scoped' keyword:
> This is dangerously close to introducing CSNS. *If* you were to do
> so, your proposed semantics of scoped seem allright. I still think
> there is not enough need for CSNS to warrant this kind of construct...

I agree with you, especially given your suggestion about defaulting
arguments in class methods.

-Rafael