From: James Coglan Date: 2009-03-21T00:10:17+09:00 Subject: Re: nested methods --001636c5a9e855584904658e5a75 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/3/20 Leo > > Depends what you mean by nesting, which was supposed to be my point -- > that > > the methods are lexically nested but not dynamically nested. > > I don't think I understand what you mean with "lexically nested" here. > The point is that the inner method replaces the outer one. Nothing > else. Maybe we could call that stacked methods or whatever. But since > the inner method cannot refer to local variables of the outer method > the word nested IMHO simply makes no sense. I meant 'lexically' as in the methods are syntactically nested. You're right, since methods are not closures it makes no sense to talk of them as being nested/stacked/whatever when talking about how the code is executed, they are nested in appearance only. --001636c5a9e855584904658e5a75--