>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Me> If I understand correctly,
Me> all what dynamic_cast<> does is to set the | result to NULL if
Me> the pointer is not of the right type. Is that so?
Lars> And it also performs the cast.
Sure, but in the way it is used, it seems to me that we could have
very clean code even when rtti is not there.
Lars> | | If this is true, it would be simple to have a | bool
Lars> Inset::hasSameType(Inset * inset) { | return tag() ==
Lars> inset.tag(); | }
Lars> It is me hating tags.
I see the plan: first we ensure that the code is unreadable with a lot
of ifdefs; then the C++ police arrives and says that we really need
rtti, so that the code is readable ;)
JMarc