[sword-devel] RTTI

Chris Little sword-devel@crosswire.org
Sun, 26 May 2002 12:24:42 -0700 (PDT)


On Sun, 26 May 2002, Victor Porton wrote:

> Hi;
> 
> What is your policy about using advanced (these present with not all compilers 
> in use) C++ features, particularly RTTI?
> 

The policy is that if your frontend needs RTTI, you can use it.  (Diaspora 
uses it, for example.)  But RTTI is not in swordlib, and shall not be 
because it needs to be portable.

If you just need to know which class a given object belongs to, we have 
our own implementation of RTTI-like functionality using SWClass.

--Chris