This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 2.95 typeinfo::name()
- To: <rssh at gvinpin dot grad dot kiev dot ua>
- Subject: Re: g++ 2.95 typeinfo::name()
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 22 Jan 2001 14:02:06 +0100
- Cc: Alexandre Oliva <aoliva at redhat dot com>, "Kellogg, Oliver" <Oliver dot Kellogg at vs dot dasa dot de>, "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <Pine.LNX.4.04.10101221410580.21707-100000@gvinpin.grad.kiev.ua>
<rssh@gvinpin.grad.kiev.ua> writes:
| On 22 Jan 2001, Alexandre Oliva wrote:
|
| > On Jan 22, 2001, "Kellogg, Oliver" <Oliver.Kellogg@vs.dasa.de> wrote:
| >
| > > Is it correct that the typeinfo::name() method of g++-2.95
| > > returns a number, i.e. the length of following characters,
| > > prefixed to the actual name?
| >
| > Yep. It would also be correct if it just returned an empty string for
| > all types.
|
| No. must be true:
|
| typeof(x)==typeof(y) <=> typeof(x).name equal typeof(y).name()
There is nothing named typeof in C++, so what?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com