[prev in list] [next in list] [prev in thread] [next in thread]
List: r-devel
Subject: Re: [Rd] proto and baseenv()
From: Peter Danenberg <pcd () roxygen ! org>
Date: 2010-02-27 8:36:20
Message-ID: 20100227083620.GA27958 () klutometis ! wikitex ! org
[Download RAW message or body]
> One thing that I dislike about scoping in R is the fact that even in a
> namespace, searches eventually get to the global environment. I'd prefer
> if namespace searches went through the imported namespaces and nothing
> else. If that were the case, then the a$z example would never find a z in
> the global environment, and that example would only be a problem for people
> fiddling around in the console, not programming carefully in a
> package.
Amazing, Duncan; I think you hit upon the perfect compromise. Though
the issues you're bringing up are bigger than proto; at least in the
case of proto, deriving from as.environment(2) is an interesting
stop-gap solution.
Thanks to Gabor for suggesting it.
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic