Skip to content

Passing environments: why doesn't this work???

3 messages · John Tillinghast, Peter Dalgaard, Gabor Grothendieck

#
John Tillinghast wrote:
Yes, what you do. You just missed the difference between eval and evalq 
(been there, done that, got the gray hair...)
#
Note that you can do things like this too:
  env$x
  with(env, x^2)
Also its possible you are really getting into object oriented
programming without realizing it with the your environments
being the objects your functions being the methods.  In that
case check out the proto package which formalizes all this
using environments to implement the prototype model (also
called object-based model) of object oriented programming.
http://r-proto.googlecode.com
On Sun, Feb 15, 2009 at 3:17 PM, John Tillinghast <tilling at gmail.com> wrote: