From romain.francois at dbmail.com  Mon Jun 29 23:32:08 2009
From: romain.francois at dbmail.com (Romain Francois)
Date: Mon, 29 Jun 2009 23:32:08 +0200
Subject: [Rd] active bindings and ls.str
Message-ID: <4A4932D8.1040501@dbmail.com>

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>


[Rd] active bindings and ls.str
Romain Francois