Just a clarification for posterity - R5 has nothing to do with the new
reference classes. It's not even an official name, but informally it's a
collection of ideas for an entirely new object system that can replace
both S3 and S4 (not that it will but it should be seen as having the
As I posted previously in this same thread, reference classes are _not_
an addition to S4, but provide an interface to the classical OOP
programming model in R, via environments and tools for those (and, also,
via some S4 techniques). The current version of the Rcpp package
illustrates how
Just a clarification for posterity - R5 has nothing to do with the new
reference classes. It's not even an official name, but informally it's a
collection of ideas for an entirely new object system that can replace both S3
and S4 (not that it will but it should be seen as having the capability
-Ursprüngliche Nachricht-
Von: Simon Urbanek [mailto:simon.urba...@r-project.org]
Gesendet: Mittwoch, 17. November 2010 11:35
An: Janko Thyson
Cc: 'r-de...@r-project. org'
Betreff: Re: [Rd] R5 reference classes: how to initialize exactly?
Just a clarification for posterity - R5
Le 17/11/10 11:39, Janko Thyson a écrit :
-Ursprüngliche Nachricht-
Von: Simon Urbanek [mailto:simon.urba...@r-project.org]
Gesendet: Mittwoch, 17. November 2010 11:35
An: Janko Thyson
Cc: 'r-de...@r-project. org'
Betreff: Re: [Rd] R5 reference classes: how to initialize exactly?
Just
On the subject of clarification, Reference Classes are not really an
addition to S4. They are a programming interface to allow OOP (i.e.,
C++ or Java-style) programming in R.
They do use some S4 tools but rely more on some valuable existing
techniques for dealing with environments, such as
Sorry, I was stupid:
MyRefObj - setRefClass(Blabla, .)
One can always get the generator object of an defined class with
'getRefClass()'. So:
g - getRefClass(Blabla)
x - g$new(.)
Regards,
Janko
Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de]
Gesendet: Dienstag,