realbasic-nug
[Top] [All Lists]

FR: Weak Delegates (was Re: Some questions about delegates)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: FR: Weak Delegates (was Re: Some questions about delegates)
From: Guyren Howe <guyren at mac dot com>
Date: Fri, 30 Nov 2007 17:06:47 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BAY107-DAV4A856F93620F2D65BA3C693710 at phx dot gbl> <8162A20A-AA06-46C4-8293-78D1BE7AE094 at chaoticbox dot com>
On Nov 30, 2007, at 4:40 PM, Frank Condello wrote:

> It's important to note that the delegate stores a strong ref to the
> instance behind your back, which can wreak havoc if you rely on
> things automatically cleaning up after themselves. In general I'd
> think delegates that held weak refs and fired exceptions when
> "Invoked" on a Nil object would be more useful, but I'm sure RS had
> their reasons for the current implementation.

Requested:

<http://www.realsoftware.com/feedback/viewreport.php?reportid=oqccypjd>

Regards,

Guyren G Howe
Relevant Logic LLC

guyren-at-relevantlogic.com ~ http://relevantlogic.com

REALbasic, PHP, Ruby/Rails, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>