Why not C++ reflection?
-
I'm kinda wondering...Why not C++ reflection?
-
I'm kinda wondering...Why not C++ reflection?
I think this is an already very well debated question, see for instance (OMG: the competitors!) [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I'm kinda wondering...Why not C++ reflection?
Chapter 14 of "The Design and Implementation of C++" by Stroustrup has got a pretty good summary of why the type inspection abilities of the language are the way they are and why some of the things that are regarded as reflection aren't in the language. It's also got a fairly good C++ implementation of a dynamic object reader which shows you how you can get some reflection type abilities out of the language without too much work. Cheers, Ash