[Rd] active bindings and ls.str

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Tue Jun 30 10:35:17 CEST 2009


On Monday 29 June 2009, Romain Francois wrote:
> 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.

I can see your point, but note that active bindings are not necessarily slow, 
and a special treatment may not be desirable in all use cases. For instance in 
RKWard, we use active bindings to detect, when objects are modified. To do so, 
we move *al* objects from .GlobalEnv to a hidden storage environment, and 
place corresponding active bindings in .GlobalEnv, instead. So, in our case, 
we'd clearly like for active bindings to behave just like regular objects, as 
much as possible.

Regards
Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20090630/806c901c/attachment.bin>


More information about the R-devel mailing list