[Rd] active bindings and ls.str

Romain Francois romain.francois at dbmail.com
Mon Jun 29 23:32:08 CEST 2009


Hello,

Should active binding appear as such in ls.str.

 > makeActiveBinding( "xx", function(arg){ Sys.sleep(10) }, .GlobalEnv )
 > ls.str() # takes 10 seconds
xx :  NULL

What we see here is the result of the "setter" of the binding.

I'm attaching a patch that prints this instead:

 > ls.str()
xx : <active binding>

Although a better behaviour would be to show the binding function.

Romain

-- 
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: activebinding.diff
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20090629/16a8c41a/attachment.pl>


More information about the R-devel mailing list