
Caleb Epstein <caleb.epstein@gmail.com> writes:
On Wed, 10 Nov 2004 20:52:24 -0500, David Abrahams <dave@boost-consulting.com> wrote:
"George van den Driessche" <grebe@bigfoot.com> writes:
I'm stumped by how to store this information in any sort of container though, since the properties are of different types. Any thoughts, or is this madness?
The properties are of different types, but the type information for properties will always be of the same type :) So you can generate a property set for your class, that includes the dictionary that maps names to property_type_info structures. Each property_type_info would be automatically generated from the static type of the property.
The thing that's bugging me is that all the reflection mechanism is covered by Boost.Python because it relies on the same principles. I *think* the boost-langbinding list seems to know this, since you also need the reflection capabilities in order to support languages that aren't Python. But that list doesn't seem to have much traffic so I haven't much to go on.
We did some work on that project recently and presented it at the Boost workshop at OOPSLA. See http://boost-consulting.com/writing/oopsla04.html http://boost-consulting.com/writing/langbinding.ppt
Is the Boost.Langbinding code available anywhere? This looks like precisely what I have been trying to do, but of course about a million times better written, documented, and full-featured than I could ever hope to do myself :-).
There's some very incomplete work in the "langbinding" branch of boost/langbinding and libs/langbinding in the main CVS. We have _lots_ of work left to do. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com