From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8693 invoked by alias); 15 Jan 2004 14:26:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8686 invoked from network); 15 Jan 2004 14:26:11 -0000 Received: from unknown (HELO mail.archelon-us.com) (208.48.30.134) by sources.redhat.com with SMTP; 15 Jan 2004 14:26:11 -0000 Received: from efs-us.com (terk.archelon-us.com [192.92.2.161]) by mail.archelon-us.com (Postfix) with ESMTP id A083E6B467 for ; Thu, 15 Jan 2004 08:17:34 -0600 (CST) Message-ID: <4006A2B2.7090401@efs-us.com> Date: Thu, 15 Jan 2004 14:26:00 -0000 From: Robert Zeh User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.5b) Gecko/20030821 MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Re: gdb, c++ & namespaces References: <20040115125112.182744B104@berman.michael-chastain.com> In-Reply-To: <20040115125112.182744B104@berman.michael-chastain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00194.txt.bz2 Michael Elizabeth Chastain wrote: >eli> The manual doesn't mention "static type" and "dynamic type" in the >eli> section that describes "set pruint". I think it should, if this >eli> terminology is to be widely accepted. > >I don't know what the popular usage in the C++ community is. >I don't want to invent new phrases if there are existing phrases. > >I checked "The C++ Programming Language" and it does not have >any nice phrases to distinguish "the type that the pointer says" >versus "the type that the object in memory has". > >Michael C > > > I believe "static type" and "dynamic type" are the correct phrases to use. They correspond nicely to C++'s static_cast and dynamic_cast operators. They also match Stroustrup's discussion in section 24.2.3 of "The C++ Programming Language" (3rd edition). He refers to the runtime types as the dynamic type, and type known at compile time as the static type. Robert Zeh