[Rd] changes to prepare for name space support
Luke Tierney
luke@stat.umn.edu
Tue, 14 May 2002 13:02:12 -0500
Two changes in the main development branch to prepare for name space
support:
Functions in base now have .BaseNamespaceEnv as their
environment instead of .GlobalEnv
UseMethod dispatch now behaves like internal dispatch in
searching for methods in the environment of the call to the
generic rather than the definition environment of the generic.
The dispatch change should not be noticed at all but is needed to
obtain somewhat more sensible behavior once method definitions are
placed in name spaces.
The main effect of placing base in a name space is that redefinitions
of base functions in .GlobalEnv or loaded packages will not be seen
when when executing bodies of functions defined in base. If your
intention is to redefine a function that is used by code in base you
need to explicitly assign the new definition into the base
environment.
luke
--
Luke Tierney
University of Minnesota Phone: 612-625-7843
School of Statistics Fax: 612-624-8868
313 Ford Hall, 224 Church St. S.E. email: luke@stat.umn.edu
Minneapolis, MN 55455 USA WWW: http://www.stat.umn.edu
----- End forwarded message -----
--
Luke Tierney
University of Minnesota Phone: 612-625-7843
School of Statistics Fax: 612-624-8868
313 Ford Hall, 224 Church St. S.E. email: luke@stat.umn.edu
Minneapolis, MN 55455 USA WWW: http://www.stat.umn.edu
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._