Skip to content
Prev 30978 / 398506 Next

lexical scope

On Tue, 22 Apr 2003, Laurent Gautier wrote:

            
Yes. R has lexical, not dynamic, scope.  That is, the lookup depends on
where a function was defined, not where it was called from.

If you need to fake dynamic scope then
a) Try not to
b) Use eval.parent()

	-thomas