delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/03/14:19:45

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Sender: salvador AT delorie DOT com
Message-ID: <3C34AE11.C27E0638@inti.gov.ar>
Date: Thu, 03 Jan 2002 16:16:33 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: djgpp AT delorie DOT com
CC: "'Raf256' Rafal Maj" <raf256 AT go2 DOT pl>
Subject: Re: rtti
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020103161549 DOT 9701B-100000 AT is>
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:

> On 3 Jan 2002, 'Raf256' Rafal Maj wrote:
>
> > "'Raf256' Rafal Maj" <raf256 AT go2 DOT pl> wrote in
> > news:Xns918A386C6A897rfdfciasdsdj412tr AT 213 DOT 180 DOT 128 DOT 20:
> >
> > > Does DJGPP + GCC 3.0.2 supports RTTI, where can I find some easy
> > > examples of using it ?
> >
> > RTTI ofcourse is Real-Time Type Identyfication... doesn't anybody here
> > knows if GCC 3.0.2 suppots it or not ?
>
> Given that even GCC 2.8.1 supported it, I don't see why 3.0.2 won't.
> IIRC, you need to use -fno-rtti to turn it OFF.

Eli is right, I never used it but you can ask gcc to generate assembler
(-S) and look the structures created for RTTI.
I also know that gcc 3.x increased the ammount of information a lot (and
that's one of the many bloats modern C++ have because the information can be
bigger than the class in extreme cases).
Now: how to use it, don't know, any modern C++ book should explain it. You
can see one of the fields in the structure is the name of the class and as
any object have a pointer to it the identification should work.

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set AT computer DOT org set AT ieee DOT org
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019