[C++-sig] Re: [Implementation] Calling wrapped functions, converters, policies

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Sep 19 04:44:19 CEST 2003

>>>>> "ND" == Niall Douglas <s_sourceforge at nedprod.com> writes:

    >> What's the difference between custom-written interface files
    >> and custom-written Pyste scripts?

    ND> pyste scripts are way, way shorter. SWIG interface files are a
    ND> simplified duplicate of the C++ header - that IMHO is stupid
    ND> because every time the header file changes, you must mirror
    ND> the changes in the SWIG interface file.

 %include "your_header.hpp"

How much simpler than that can you get?  If you need to pick
classes/functions then you can use %ignores to ignore what you don't
want.  Yes, it is a problem that you can't pick specific classes from
a bunch of them.  Perhaps that would be a good feature to suggest on
the SWIG lists?  Note that you do get some extra flexibility with the
SWIG approach.


More information about the Cplusplus-sig mailing list