Re: [RFC] Alternate approach to keeping convenience variables

Jim Blandy
2006-01-04T18:37:10Z

On 1/4/06, Andrew STUBBS <andrew.stubbs@st.com> wrote:
> Perhaps you could modify copy_type_recursive such that it creates a
> cleanup chain specific to the internal variable. Then call do cleanups
> in set_internal_var.
>
> Might be tricky with shared type copies though. Just a thought.

Exactly.

You can keep throwing complexity into the code to deal with this stuff
until it buries you. And it'll never be a full solution. Or it'll be
complete until someone wants to add some perfectly reasonable feature
(just as is happening with "let's preserve the values of convenience
variables across symfile loads" right now). At some point, we have to
take a step back and think about a complete solution.