David Brahm  <[EMAIL PROTECTED]> writes:

> Language differences:
> - Scoping rules differ.  In R, functions see the functions they're in.  Try:
>     f1 <- function() {x <- 1; f2 <- function() print(x); f2()};  f1()

It may be more accurate to say "the functions they're defined in".
It's lexical scoping, not dynamic scoping.

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to