From: Tom Tromey <tromey@redhat.com>
To: Keith Seitz <keiths@redhat.com>
Cc: Project Archer <archer@sourceware.org>
Subject: Re: [expr-cumulative] RFA fix PR 9708
Date: Tue, 26 Jan 2010 21:08:00 -0000 [thread overview]
Message-ID: <m31vhck20h.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4B5F5663.6090301@redhat.com> (Keith Seitz's message of "Tue, 26 Jan 2010 12:53:55 -0800")
Keith> One question: should one be able to print the value of this static
Keith> OUTSIDE the specific block in which it is defined? "print
Keith> K::m::themagicstatic"?
It would have to be some other syntax, because this is valid:
struct K {
int m () {
static bool themagicstatic = false;
return themagicstatic ? 23 : 24;
}
class m {
static bool themagicstatic;
};
};
... and K::m::themagicstatic unambiguously refers to the member of
class m.
I thought about trying to make K::m()::themagicstatic work, but that
also seems like a pain.
Keith> This would almost certainly be a contrivance on our part for the sake
Keith> of debugging, but it seems a reasonable thing to be able to do.
I agree. I think it is a separate problem, though, because it would be
nice to also make it work for C, where there is no demangled form, etc.
Maybe if we ever get "HPD-like" in our symbol naming, or something like
that.
Keith> In any case, I don't have a problem with your patch.
Thanks, I'll commit shortly.
Tom
prev parent reply other threads:[~2010-01-26 21:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 18:02 Tom Tromey
2010-01-26 20:54 ` Keith Seitz
2010-01-26 21:08 ` Tom Tromey [this message]
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=m31vhck20h.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=archer@sourceware.org \
--cc=keiths@redhat.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).