refcount expectations should be clearer
Closed / Fixed956126ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-05-18 18:26:56
Been chasing down a bug that ultimately traced to a failure in a Tcl_FSLinkProc() I wrote to Tcl_IncrRefCount() the value it returned. The docs say "the result is owned by the caller", but it would be clearer if it explicitly stated that "the result must have its ref count incremented before returning to the caller".
vincentdarleyplain2004-05-19 01:32:38
Logged In: YES user_id=32170 Please do carry out any and all FS documentation improvements you believe are necessary. You appear to be the first person besides me to delve really deeply into the FS code, so I think Tcl would very strongly benefit from any clarifications you can provide, and the identification of any confusions, like this, that you notice. If you wish to collect such changes and run them past me, of course I'm happy to vet them, but clear-cut examples like this I think are probably best just put right!
vincentdarleyplain2004-05-19 23:58:42
Logged In: YES user_id=32170 Fixed the documentation.
Log in (anonymous is fine) to add a comment.