Re: [R] help with oop in R - class structure and syntex

From: tom soyer <tom.soyer_at_gmail.com>
Date: Wed, 6 Feb 2008 12:16:18 -0600

Gabor, maybe I am not understanding it right. I was thinking for example something like how a call to plot actually calls plot.zoo when zoo is loaded. And a specific call to plot.zoo would not work, etc. One would think that plot and plot.zoo are separate and that one could call the parent as well as the offsprings independently. But if this kind of setup is by design, than it's fine. Does that make sense?

On 2/6/08, Gabor Grothendieck <ggrothendieck_at_gmail.com> wrote:
>
> 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.
> >
>

-- 
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.
Received on Wed 06 Feb 2008 - 18:19:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Feb 2008 - 19:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive