Re: [R] S4 Reference Classes: undesired behavior when calling method '$field()'

2013-03-20 Thread Gabor Grothendieck
On Wed, Mar 20, 2013 at 12:38 PM, Janko Thyson wrote: > Dear list, > > I came across a behavior that IMHO is somewhat undesired when calling > '$field()': > If the field name whose value you're trying to get is *not* a valid > field of the Reference Class, then R doesn't stop there with an error,

[R] S4 Reference Classes: undesired behavior when calling method '$field()'

2013-03-20 Thread Janko Thyson
Dear list, I came across a behavior that IMHO is somewhat undesired when calling '$field()': If the field name whose value you're trying to get is *not* a valid field of the Reference Class, then R doesn't stop there with an error, but scans through all enclosing environments/frames. The result