This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Fission patch 1/2
On Fri, Apr 13, 2012 at 10:53 AM, Tom Tromey <tromey@redhat.com> wrote:
> Though I'd still prefer that most
> code not play games with cleanups at all and just treat them as
> block-scoped as much as possible.
cleanups are chained, and one has to always be cognizant of the chain
(in a not-entirely intuitive fashion IMO, though I understand the
implementation reasons for it).
I think there's value in a cleanup mechanism where one didn't have to
be cognizant of the chain, or at least be less cognizant (whether
that's completely possible, I don't know).
[btw, I don't know if I'd color it as "playing games" ...]