Skip to content
Prev 151460 / 398498 Next

environment question

Edna Bell wrote:
It actually doesn't. From the code above here's the inheritance tree for 
the environments:

baseenv() => e1 => e2

When you call exists() on the e2 environment, it actually fails. However 
since the inherits flag is TRUE by default, exists() searches through 
the inherited environments and finds "a" in e1. So, exists will tell you 
that it found "a", just not where it found "a".

However, if you set inherits=FALSE, then exists() searches only in the 
specified environment.

HTH

Jeff