Skip to content
Prev 18915 / 63424 Next

Enhancement request: anonymous connections

On 12/28/2005 9:50 AM, Seth Falcon wrote:
No it doesn't.  However, I've committed the small fix.
I think the general problem is that R doesn't have references (or at 
least, they aren't in a final, documented state).  If the garbage 
collector closed a connection, then things would go wrong when there 
were two copies of it:  the second one would be messed up when the first 
was destroyed.  If we had references, then opening a connection could 
create a connection object and a reference to it; the connection object 
would remain as long as there were any references to it, and could be 
destroyed (and automatically closed) after the last reference was gone.

Duncan Murdoch