[R] Question on closure (lexical scoping) and encapsulation
murdoch at stats.uwo.ca
Wed Jun 14 20:32:53 CEST 2000
On 14 Jun 2000 19:35:21 +0200, Peter Dalgaard BSA
<p.dalgaard at biostat.ku.dk> wrote in message
<x2snugupwm.fsf at blueberry.kubism.ku.dk>:
>murdoch at stats.uwo.ca (Duncan Murdoch) writes:
>> Shouldn't the line "attributes(x) _ NULL" have applied only to x, the
>> local copy of .GlobalEnv?
>I don't think so. There is only one .GlobalEnv. Environments are not
>copied on assignment (or everything else breaks!).
Okay, I understand. I was thinking that .GlobalEnv had the semantics
of a pointer or a reference, it wasn't the environment itself.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help