[R] A primitive OO in R -- where next?

Gabor Grothendieck ggrothendieck at gmail.com
Thu May 13 01:02:21 CEST 2010


There is a paper on the proto home page http://r-proto.googlecode.com
-- click on External Links on the right of the home page and see
Prototype-Based Programming in Statistical Computation.

On Wed, May 12, 2010 at 5:48 PM, Ted Harding
<Ted.Harding at manchester.ac.uk> wrote:
> Greetings All,
>
> Out of curiosity, I've just done a very primitive experiment:
>
>  Obj <- list(Fun=sum, Dat=c(1,2,3,4))
>  Obj$Fun(Obj$Dat)
>  # [1] 10
>
> That sort of thing (much more sophisticated) must be documented
> mind-blowingly somewhere. Where?
>
> Where I stand right now: The above (and its immediately obvious
> generalisations, like Obj$Fun<-cos) is all I know about it so far.
>
> Ted.
>
> --------------------------------------------------------------------
> E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
> Fax-to-email: +44 (0)870 094 0861
> Date: 12-May-10                                       Time: 22:48:14
> ------------------------------ XFMail ------------------------------
>
> ______________________________________________
> 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