Re: A PMC class for reference counting

2005-09-09 Thread Nicholas Clark
On Thu, Sep 08, 2005 at 09:19:43PM +0200, Leopold Toetsch wrote: > > On Sep 8, 2005, at 18:59, Nicholas Clark wrote: > > > > >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 de

Re: A PMC class for reference counting

2005-09-08 Thread Leopold Toetsch
On Sep 8, 2005, at 18:59, Nicholas Clark wrote: 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. Yep. Just change it. Nicholas Clark leo

Re: A PMC class for reference counting

2005-09-08 Thread Nicholas Clark
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

Re: A PMC class for reference counting

2005-08-23 Thread Leopold Toetsch
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.