Questions tagged [rtti]

Runtime type information (RTTI) refers to data which exists at runtime, which can be used for runtime type checks, reflection, or other dynamic behaviours which depend on types. Use this tag for questions about RTTI or the implementation of language features which depend on RTTI.

Filter by
Sorted by
Tagged with
8 votes
1 answer

How can runtime type checks be implemented?

Most if not all OO languages have some way to determine whether an object belongs to a given class at runtime. In some languages -- both interpreted (like JS) and compiled (like Objective-C) -- ...
Bbrk24's user avatar
  • 8,857