[R] help with oop in R - class structure and syntex
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Feb 6 18:43:49 CET 2008
If you believe that certain changes intended only to affect the local
environment nevertheless affect the global environment please give a
code example.
On Feb 6, 2008 12:11 PM, tom soyer <tom.soyer at gmail.com> wrote:
> Thanks Hardley. I see what you mean. You are right, I am not an expert in
> oop AND I don't really know how R oo works, so certainly I shouldn't be
> making any sweeping statement. I was just thinking about the issue of local
> vs. global, i.e. changes intended for the local environment shouldn't affect
> the global environment. That was all I meant.
>
>
> On 2/6/08, hadley wickham <h.wickham at gmail.com> wrote:
> >
> > On Feb 6, 2008 10:13 AM, tom soyer <tom.soyer at gmail.com> wrote:
> > > Thanks Gabor. I guess true oo encapsulation is not possible in R.
> >
> > Before making such a claim, I would encourage you to actually learn
> > what oo means. A couple of good readings are:
> >
> > Structure and Interpretation of Computer Programs.
> > http://mitpress.mit.edu/sicp/
> >
> > Concepts, Techniques, and Models of Computer Programming.
> > http://www.info.ucl.ac.be/~pvr/book.html
> >
> > Java style (message passing) oo is not the entirety of oo-based
> > programming!
> >
> > Hadley
> >
> > --
> > http://had.co.nz/
> >
>
>
>
> --
> Tom
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
>
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list