From pgilbert at bank-banque-canada.ca  Mon Jun 29 19:59:04 2009
From: pgilbert at bank-banque-canada.ca (Paul Gilbert)
Date: Mon, 29 Jun 2009 13:59:04 -0400
Subject: [Rd] S4 and connection slot [Sec=Unclassified]
In-Reply-To: <8b356f880906290941v5f51c4c4pb12d40f510f56bc8@mail.gmail.com>
References: <42C7503E0B99F248B06BC65E7D2B4E020122C50FB2AB@EX2K7-CCR.AAD.GOV.AU>	<4A48BF64.7070004@fhcrc.org>
	<8b356f880906290941v5f51c4c4pb12d40f510f56bc8@mail.gmail.com>
Message-ID: <4A4900E8.4020705@bank-banque-canada.ca>

There may be a problem that objects with slots can persist into new 
sessions (i.e. be saved)  but I think connections die when a session 
ends, so whatever is in the slot is no longer valid.

Paul

Stavros Macrakis wrote:
> On Mon, Jun 29, 2009 at 9:19 AM, Martin Morgan <mtmorgan at fhcrc.org> wrote:
> 
> 
>>...I'm not sure that including a connection in a slot is going to be a good
>>idea, though -- a connection has reference-like semantics, so you can
>>end up with multiple objects pointing to the same connection, Also when
>>an object is garbage collected the connection will not be closed
>>automatically.
> 
> 
> 
> I'm not sure I understand your point here.  Having multiple objects refer to
> the same connection seems like a perfectly reasonable and useful thing, and
> garbage collection should work just fine -- when *all* of the objects
> referring to that connection are unreachable, then the connection is
> unreachable and will itself be garbage collected.  No?
> 
>            -s
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
====================================================================================

La version fran?aise suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential information, and the Bank of
Canada does not waive any related rights. Any distribution, use, or copying of this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately from
your system and notify the sender promptly by email that you have done so. 

------------------------------------------------------------------------------------

Le pr?sent courriel peut contenir de l'information privil?gi?e ou confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires d?sign?s est interdite. Si vous recevez
ce courriel par erreur, veuillez le supprimer imm?diatement et envoyer sans d?lai ?
l'exp?diteur un message ?lectronique pour l'aviser que vous avez ?limin? de votre
ordinateur toute copie du courriel re?u.


[Rd] S4 and connection slot [Sec=Unclassified]
Paul Gilbert