This is going to be a problem. I don't appear to be able to rename a method once it's declared. So if the core bindings file declares some overloaded operators, functions or constructors, it's impossible to move them out of the way in only some of the bindings. 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? J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james at tartarus.org uncertaintydivision.org
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