Skip to content
Prev 34724 / 63421 Next

Active bindings in attached environments

Also, active bindings on the search path seem to do only half of the job:

 > e <- new.env()
 > attach( e )
 > makeActiveBinding( "x", function(val) if(missing(val)) "get" else 
"set", as.environment(2) )
 > x
[1] "get"
 > x <- 3
 > x
[1] 3

Romain
On 11/05/2009 05:54 PM, Romain Francois wrote: