From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6194 invoked by alias); 26 Jan 2010 21:08:40 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 6176 invoked by uid 22791); 26 Jan 2010 21:08:38 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org From: Tom Tromey To: Keith Seitz Cc: Project Archer Subject: Re: [expr-cumulative] RFA fix PR 9708 References: <4B5F5663.6090301@redhat.com> Reply-To: Tom Tromey Date: Tue, 26 Jan 2010 21:08:00 -0000 In-Reply-To: <4B5F5663.6090301@redhat.com> (Keith Seitz's message of "Tue, 26 Jan 2010 12:53:55 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2010-q1/txt/msg00032.txt.bz2 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