[R] Scoping rules

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Oct 9 09:22:32 CEST 2003


Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:

> > Should this read "parent environments" instead of "parent frames"?  I'm 
> > taking this from R 1.7.1.
> 
> It should read `enclosing' not `parent' for a start.
> 
> Thanks: we will try to get this consistent.

Beware: Robert has been pretty insistent in using the term "parent
environment" for the thing that is ENCLOS() in C code. E.g. we have
the functions parent.env() for lexical scope and parent.frame() for
dynamic scope. So Roger might well have the better suggestion for
achieving consistency. 

        -p

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list