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

Re: A PMC class for reference counting

Thread Previous | Thread Next
Nicholas Clark
September 8, 2005 09:59
Re: A PMC class for reference counting
Message ID:
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.


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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About