From thomas.friedrichsmeier at ruhr-uni-bochum.de  Tue Jun 30 10:35:17 2009
From: thomas.friedrichsmeier at ruhr-uni-bochum.de (Thomas Friedrichsmeier)
Date: 30 Jun 2009 10:35:17 +0200
Subject: [Rd] active bindings and ls.str
In-Reply-To: <4A4932D8.1040501@dbmail.com>
References: <4A4932D8.1040501@dbmail.com>
Message-ID: <200906301035.20681.thomas.friedrichsmeier@ruhr-uni-bochum.de>

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>


[Rd] active bindings and ls.str
Thomas Friedrichsmeier