Kohei Yoshida wrote:
I see this TYPEINFO macro defined in tools/rtti.hxx

#define TYPEINFO() \
        static  void*  CreateType(); \
        static  TypeId StaticType(); \
        static  BOOL   IsOf( TypeId aSameOrSuperType ); \
        virtual TypeId Type() const; \
        virtual BOOL   IsA( TypeId aSameOrSuperType ) const

used all over the place.  But is this macro still actively used or is it
deprecated?

It was introduced and heavily used at a time when compiler-based RTTI was still unavailable or too expensive. It would not be necessary today that we have compiler-based RTTI available everywhere, but I guess that lots of code have not been adapted accordingly and thus still use the old stuff.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to