
Hi, Boost.Python has a great dispatch mechanism, complete with type and methods registry, and works nice with template types (given the instantiations), and overloading -- with the extra bonus of working across shared-object boundaries. It could be very useful for many other purposes, if it were not so tied to Python. I'm thinking about multi-methods / multiple dispatching / generic factories / plug-ins. Shared objects that register extensions when loaded, e.g., register new concrete objects and new specializations for already existent methods. Is there any library that already does this? Can the non-python code be easily separated from the python-dependent code in Boost.Python? Is there already some effort to do something like this? Thanks in advance, Edson

Hello Edson, Edson Tadeu wrote:
Hi,
Boost.Python has a great dispatch mechanism, complete with type and methods registry, and works nice with template types (given the instantiations), and overloading -- with the extra bonus of working across shared-object boundaries.
It could be very useful for many other purposes, if it were not so tied to Python.
I'm thinking about multi-methods / multiple dispatching / generic factories / plug-ins. Shared objects that register extensions when loaded, e.g., register new concrete objects and new specializations for already existent methods. Is there any library that already does this? Can the non-python code be easily separated from the python-dependent code in Boost.Python? Is there already some effort to do something like this?
Yes, The effort is called Boost.Langbinding (see for instance http://sourceforge.net/mailarchive/forum.php?forum_name=boost-langbinding). Unfortunately, it seems that the project has stalled. Best, Stefano
participants (2)
-
Edson Tadeu
-
Stefano Delli Ponti