Mail Archives: djgpp/2002/01/03/14:19:45
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 -