This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g++ 2.95 typeinfo::name()


<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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]