[Xapian-devel] Bindings and overloading

Olly Betts olly at survex.com
Wed May 26 17:53:44 BST 2004


On Wed, May 26, 2004 at 05:49:29PM +0100, James Aylett wrote:
> Since Python supports overloading, I can't think of any solution to
> this other than maintaining two different xapian.i files, one with the
> overloading renamed away. This isn't pleasant - does anyone have an
> alternative suggestion that would avoid this?

How about a single xapian.i, but use "#ifdef SWIGPYTHON" so it sees different
parts?  There's something similar with SWIGGUILE already.

Cheers,
    Olly




More information about the Xapian-devel mailing list