[racket-dev] collects/mred/private/wx/cocoa/sound.rkt, comment about retain

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Mar 15 08:47:04 EDT 2011

At Tue, 15 Mar 2011 06:57:37 -0400, "Geoffrey S. Knauth" wrote:
> I was looking at collects/mred/private/wx/cocoa/sound.rkt, and a comment 
> didn't make sense to me, because it looks as though retain is being used.
> 
> (tellv s retain) ; don't use `retain', because we dont' want auto-release
> 
> I'm guessing someone meant:
> 
> (tellv s retain) ; use `retain', because we don't want auto-release

It should be

  use the `retain' method instead of the `retain' function, because we
  don't want a finalization-triggered release

I'll push that clarification.



Posted on the dev mailing list.