Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| >>>>> "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.
But using dynamic_cast you also make sure about what kind of object
you have. When using tags you can have insets lying to you (even more
important when/if we allow dynamic inclusion of insets)
| 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 ;)
Right.
Lgb