|
Boost : |
From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2004-11-10 22:35:02
On Wed, 10 Nov 2004 20:52:24 -0500, David Abrahams
<dave_at_[hidden]> wrote:
> "George van den Driessche" <grebe_at_[hidden]> 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 :-).
-- Caleb Epstein caleb.epstein_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk