[Xapian-devel] Bindings and overloading
James Aylett
james-xapian at tartarus.org
Wed May 26 18:06:16 BST 2004
On Wed, May 26, 2004 at 05:53:44PM +0100, Olly Betts 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.
I suppose so. There aren't a huge number of conflicts ... #ifdef
SWIG_OVERLOADING might be better, and the target languages can define
that in util.i if they want.
J
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-devel
mailing list