On Wed, May 25, 2005 at 06:08:42PM -0400, Michal Wallace wrote:

> So: Py_INCREF(x) could be rewritten to (for example)
> append a reference to x in a parrot array, 
> and Py_DECREF(x) would pop it off the array.

I think that you can use Parrot_register_pmc and Parrot_unregister_pmc
IIRC they count up the number of registrations, and only stop tracking that
PMC when the count returns to zero.

Nicholas Clark

Reply via email to