Re: Inheritance graph

David Abrahams <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <[email protected]>
Daniel Wallin <[email protected]> writes:

> FYI, I've messed around with the code in inheritance.cpp /
> inheritance.hpp and made it into a real singleton. In this process I
> also investigated type importing, and to me it seems complicated to
> try to share any data at all between modules.

Yes, it's at least complicated.  However, given the size of the cache
it does seem expensive not to share when multiple modules interact.

> Also, I've looked into library configuration. I ended up with one macro;
> BOOST_LANGBINDING_TYPE_INFO, which is the type used for type
> identification. 

Is there some reason we'd have to use a MACRO instead of a typedef??

> I also did something like this (python::type_info used for
> illustrative purposes):
>
>    typedef BOOST_LANDBINDING_TYPE_INFO type_info;
>
>    template<class T>
>    type_info static_type_id(T*, type<python::type_info>)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^
What is this argument for??
>    { return python::type_id<T>(); }
>
>    template<class T>
>    type_info dynamic_type_id(T* p, type<python::type_info>)
>    { return type_info(typeid(p)); }
>
> Anyway, nothing is checked in yet.. I'm merging luabind with the
> inheritance code right now though.

Hmm, interesting.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.