This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |