Inheritance graph

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <[email protected]>
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.

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. 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>)
   { 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.

---
Daniel Wallin



-------------------------------------------------------
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.