[Patches] GC infrastructure patch 1 (tp_recurse, tp_clear)
Neil Schemenauer
nascheme@enme.ucalgary.ca
Wed, 21 Jun 2000 11:22:23 -0600
On Wed, Jun 21, 2000 at 10:16:11AM -0400, Jeremy Hylton wrote:
> I'm still not convinced that a return value is useful. Here's an
> example of a function that uses the recurse code and visit code.
Hmm, I guess my last message wasn't too clear. The GC code does
not use the return value. tp_recurse takes a function pointer as
an argument. visitproc could possibly return a non-zero status
code but all the visitprocs in the GC return success. If, in the
future, someone else finds a use for tp_recurse they may wish to
return a status value from their visitproc.
I have been a little sloppy with the return values since the GC
didn't need them. My fault. For optimal flexibility if
visitproc returns a non-zero value the tp_recurse functions should
return it instead of 1.
Neil
--
"I can't believe I put pants on for this."
--Homer Simpson