Skip to content
Prev 33179 / 63424 Next

V2.9.0 changes [Sec=Unclassified]

On Thu, Jul 2, 2009 at 1:37 AM, Troy Robertson<Troy.Robertson at aad.gov.au> wrote:
Note that the R.oo and proto packages already use environments for
their storage. e.g.

library(proto)
p <- proto(a = 1, incr = function(.) .$a <- .$a + 1)
class(p) # c("proto", "environment")

p$a # 1
p$incr()
p$a # 2

p$ls() #  c("a", "incr")
ls(p) # same