John Maindonald <[EMAIL PROTECTED]> writes:

> I have found it helpful, in trying to explain (to myself and others)
> what happens, to say that there is both a lexical stack and a call
> stack.  Is that a legitimate use of terminology?

Slightly inaccurate I'd say. Both are actually trees, since multiple
calls can have the same parent (due to eval() and lazy evaluation) and
multiple environments can share the same enclosing environment. 

Since the trees are only connected by arrows pointing towards the
root, they just *look like* a stack of frames when viewed from one of
the branches. The only true stack structure is the context stack,
which holds the information on where to return from the current call.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])             FAX: (+45) 35327907

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to