Connecting Tech Pros Worldwide Forums | Help | Site Map

understanding working of RTTI

dumboo
Guest
 
Posts: n/a
#1: Jul 22 '05
hi there
i just went through with C++ faq and faq lite, it was great, but i was not
able to find much information on working of RTTI how it is handled
internally, i tried google search with some general keywords...but not of
much help...

any suggestions ??

also any suggestions for understanding C++ in a better way :-)

regards
-Dumboo



llewelly
Guest
 
Posts: n/a
#2: Jul 22 '05

re: understanding working of RTTI


"dumboo" <vthe2@yahoo.com> writes:
[color=blue]
> hi there
> i just went through with C++ faq and faq lite, it was great, but i was not
> able to find much information on working of RTTI how it is handled
> internally, i tried google search with some general keywords...but not of
> much help...
>
> any suggestions ??[/color]

Read Stroustrup's _The C++ Programming Language_, 3rd or SE, section
15.4 .
[color=blue]
>
> also any suggestions for understanding C++ in a better way :-)[/color]

Read the rest of the book. :-)
If you are a beginner, or don't mind re-learning some
material. Koenig and Moo's _Accelerated C++_ is quite helpful.
tom_usenet
Guest
 
Posts: n/a
#3: Jul 22 '05

re: understanding working of RTTI


On Tue, 3 Feb 2004 10:03:53 +0530, "dumboo" <vthe2@yahoo.com> wrote:
[color=blue]
>hi there
>i just went through with C++ faq and faq lite, it was great, but i was not
>able to find much information on working of RTTI how it is handled
>internally, i tried google search with some general keywords...but not of
>much help...
>
>any suggestions ??[/color]

This book says quite a lot about how C++ is implemented. I haven't
read it but:
http://www.aw-bc.com/catalog/academi...834545,00.html

In general, it is implemented by adding some type information to the
vtable of a class, as well as some code to "walk" the class heirarchy
for dynamic_cast.

Tom

C++ FAQ: http://www.parashift.com/c++-faq-lite/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Jonathan Turkanis
Guest
 
Posts: n/a
#4: Jul 22 '05

re: understanding working of RTTI


"tom_usenet" <tom_usenet@hotmail.com> wrote in message
news:c8vu1054uvvsjfrpj19931v733vveri7s6@4ax.com...[color=blue]
> On Tue, 3 Feb 2004 10:03:53 +0530, "dumboo" <vthe2@yahoo.com> wrote:
>[color=green]
> >hi there
> >i just went through with C++ faq and faq lite, it was great, but i[/color][/color]
was not[color=blue][color=green]
> >able to find much information on working of RTTI how it is handled
> >internally, i tried google search with some general keywords...but[/color][/color]
not of[color=blue][color=green]
> >much help...
> >
> >any suggestions ??[/color]
>
> This book says quite a lot about how C++ is implemented. I haven't
> read it but:
>[/color]
http://www.aw-bc.com/catalog/academi...834545,00.html[color=blue]
>[/color]

I have read it, and I would recommend it with these caveats:

1. The C++ implementation strategies discussed are probably not
exhaustive, since the book was written some time ago. (I don't know
for sure, since unfortunately I am not familiar with the internals of
current implementations.)
2. In some places, the author is careful to distinguish between what
the (then emerging) standard requires, and what particular
implementation do; in other places, he leaves the impression that the
Cfront 2.0 implementation is part of the standard.
3. There are a few mistakes and a lot of typos.

Jonathan


Closed Thread


Similar C / C++ bytes