Gisle Aas wrote:
> The %anon_refs in Tcl.pm bugs me. It is used to remember
> sub- and variable-references that have been passed to Tcl.
> The drawback is that anything passed to Tcl then lives
> forever because it is kept alive by %anon_refs even if
> nothing else reference it. This is especially problematic
> for closures that are created fresh each time they are passed.
>
> I've played with patches that fixes this, but they do break
> the documented ;'{return,delete}_ref' API. Is this a
> problem? Anybody have code that uses it?
>
> My current Tcl.pm patch collection is attached to this message.
+1 to removal. I always figured the API mentioned was really
only for internal usage. I've not seen code that uses it.
Jeff