From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: FYI: use SYMBOL_SYMTAB accessor
Date: Mon, 26 Nov 2012 18:32:00 -0000 [thread overview]
Message-ID: <87mwy4gqqs.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20121126163706.GA3089@adacore.com> (Joel Brobecker's message of "Mon, 26 Nov 2012 17:37:06 +0100")
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> I am wondering if should consider making these structures opaque
Joel> Aside from the amount of work to do in order to achieve that,
Joel> do you see a negative is aiming for this goal for this particular
Joel> struct? (and all the symtab-related structs)?
Joel> [I've always wanted to make all complex and semi-complex structures
Joel> opaque :-)]
I'm somewhat on the fence about this, but on balance I think it is a
good idea to make types that are used in more than one file opaque.
However, in practice this hasn't always helped much. The symbol
accessors are the worst, as we've discussed before, because many of them
are polymorphic without any purpose -- so they are both verbose and hard
to change. In other cases in recent memory, I've wanted to change
direct accessors to separate assignments from uses; and this requires
global changes anyway, meaning that the macros didn't really help all
that much.
Tom
next prev parent reply other threads:[~2012-11-26 18:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-26 15:54 Tom Tromey
2012-11-26 16:37 ` Joel Brobecker
2012-11-26 18:32 ` Tom Tromey [this message]
2012-11-26 20:43 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwy4gqqs.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox