billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
640 stars 93 forks source link

Rename PONDER_RTTI #36

Closed billyquith closed 7 years ago

billyquith commented 8 years ago

This macro is used to allow dynamic casting within a class hierarchy. Docs:

Macro used to activate the Ponder RTTI system into a hierarchy of classes

The name therefore seems a little misleading. Suggestions?

Perhaps PONDER_DYNAMIC?

Weeena commented 8 years ago

Maybe PONDER_POLYMORPHIC? Or PONDER_THIS_TYPE?

The irony with PONDER_DYNAMIC would be that this macro establishes the static type of a class...

billyquith commented 8 years ago

I'm favouring PONDER_POLYMORPHIC. That is really the sole reason to use it.

billyquith commented 7 years ago

Done.