develooper Front page | perl.perl6.internals | Postings from September 2005

Re: A PMC class for reference counting

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
September 8, 2005 09:59
Subject:
Re: A PMC class for reference counting
Message ID:
20050908165928.GM1790@plum.flirble.org
On Tue, Aug 23, 2005 at 01:56:31PM +0200, Leopold Toetsch wrote:
> Nicholas Clark wrote:
> >Following on our discussion on IRC, what I think we agreed on was that
> >Parrot should provide a new PMC class functionally similar to how the
> >dod_register_pmc/dod_unregister_pmc works. Quite probably it can share
> >implementation code with the DOD registration system.
> 
> Done.

Thanks.

Would it make sense if it returned 0 rather than -1 on "not found"?
The implementation can never return a reference count of 0, because keys
are automatically deleted when they are decremented to 0.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About