[R] Question on closure (lexical scoping) and encapsulation
thomas at biostat.washington.edu
Wed Jun 14 17:41:09 CEST 2000
On Wed, 14 Jun 2000, Duncan Murdoch wrote:
> It would also probably make sense to base the object oriented aspects
> of S on environments rather than on naming conventions and attributes,
> but it's probably too late to do that now.
It may help to view S classes as analogous to Java interfaces rather than
to classes in traditional object-oriented languages. Giving something the
"lm" class (possibly with other classes) is not necessarily a statement
about inheritance ("glm" isn't really a kind of "lm"), but should be a
guarantee that lm methods will do something sensible with the object.
Assistant Professor, Biostatistics
University of Washington, Seattle
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help