Skip to content
Prev 38124 / 63424 Next

Plans for tighter integration of reference classes in R.

John Chambers <jmc at r-project.org> writes:
Not internals of the  evaluator, the .environment class.
Something like:
  - move the .self into a  super-class of envRefClass (in this case .environment),
  - make the method for `@` for .environment, such that any update of the
  slots of the object will update the .self, making it virtually a mirror of the
  object.
  - make functions like parent.env and environment recognize the .self and
  return it instead of the internal environment object (writing methods would be probably
  quite an overhead).

This way, envRefClass is not affected, and people will have much nicer time in
programming with subclasses of .environment. Particularly I will be writing my
protoRefClasses happily, and not bother to overwrite core functions:)