S
Steven T. Hatton
Has there been any substantial progress toward supporting
introspection/reflection in C++?
I don't intend to mean it should be part of the Standard. It would,
nonetheless, be nice to have a generally accepted means of providing
introspection.
My inclination is to have two general categories of introspection: dynamic
introspection, and static intospection. In situations where it makes sense
to use virtual functions and their associated vtbls, introspection would
probably be easier to provide and used. We could inherit from a common
base class (beware the diamond DAG). In situations where the overhead of
virtual function pointers is of significant consequence (highspeed
scientific and engineering programs) it may be possible to provide a means
of introspection similar to the way concepts are supported and used with
templates.
Ideas?
--
"If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true." - Bertrand
Russell
introspection/reflection in C++?
I don't intend to mean it should be part of the Standard. It would,
nonetheless, be nice to have a generally accepted means of providing
introspection.
My inclination is to have two general categories of introspection: dynamic
introspection, and static intospection. In situations where it makes sense
to use virtual functions and their associated vtbls, introspection would
probably be easier to provide and used. We could inherit from a common
base class (beware the diamond DAG). In situations where the overhead of
virtual function pointers is of significant consequence (highspeed
scientific and engineering programs) it may be possible to provide a means
of introspection similar to the way concepts are supported and used with
templates.
Ideas?
--
"If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true." - Bertrand
Russell